Skip to content

#1237a8

a dark, electric blue · cool · closest name: Dark Slate Blue

RGB
18, 55, 168
HSL
225°, 81%, 37%
CMYK
89, 67, 0, 34
Luminance
0.0569

At a glance

Every number on this page in one read: what #1237a8 is made of, how bright it looks, and which way it leans.

Hex
#1237a8
Hue
225°
blue
Saturation
81%
electric
Lightness
37%
dark
Brightness
66%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0569
WCAG relative
Temperature
Cool
92/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.82:1
Closest name
Dark Slate Blue
ΔE2000 8
Where it sits
Hue225° of 360°
Saturation81%
Lightness37%
Temperature
Warm ← → Cool92% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#1237a8
RGBrgb(18, 55, 168)
HSLhsl(225, 81%, 37%)
CMYKcmyk(89%, 67%, 0%, 34%)
LABlab(28.6 32.9 -63.5)
LCHlch(28.6 71.5 297.4)
OKLCHoklch(0.397 0.185 264.7)
Decimal1193896
Display P3color(display-p3 0.071 0.216 0.659)

Copy-ready code

/* CSS */
color: #1237a8;
background-color: #1237a8;
/* Tailwind (arbitrary) */
class="text-[#1237a8] bg-[#1237a8]"
/* SCSS */
$brand: #1237a8;
/* SwiftUI */
Color(red: 0.071, green: 0.216, blue: 0.659)
/* Android */
Color.parseColor("#1237a8")
/* Flutter */
Color(0xFF1237A8)
/* Python / OpenCV (BGR) */
(168, 55, 18)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #1237a8 · 9.82:1
Use #ffffffAAA at every size.
Aa
White text · 9.82:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.14:1
AA fail · AA large fail · AAA fail
Reading the other direction: #1237a8 as text scores 9.82:1 on white and 2.14:1 on black.

Accessibility — WCAG contrast

Aa
#1237a8 on white: 9.82:1
AA ✓ pass · AA-large · AAA
Aa
#1237a8 on black: 2.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004BAC
deuteranopia · #003DA6
tritanopia · #00566A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1237a8 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F3F5FC
#E6EBF9
#C6D2F5
#9AB0F4
#6788EF
#3461E9
#1848DD
#1237a8
#103093
#10266B
#0A1843
Base = 700Lightest = 50 · #F3F5FCDarkest = 950 · #0A1843
:root {
  --brand-50: #F3F5FC;
  --brand-100: #E6EBF9;
  --brand-200: #C6D2F5;
  --brand-300: #9AB0F4;
  --brand-400: #6788EF;
  --brand-500: #3461E9;
  --brand-600: #1848DD;
  --brand-700: #1237a8;
  --brand-800: #103093;
  --brand-900: #10266B;
  --brand-950: #0A1843;
  --brand: #1237a8;
  --brand-ink: #ffffff;
}

Colors that work with #1237a8

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4F6FA
Tinted page background
Border#C0CBED
Hairlines and dividers
Muted text#4B5E9B
Captions on the surface
Accent#AC5E0E
Second voice, not a rival
Dark variant#0C2673
Hover, pressed, headers
Light variant#E8EDFD
Selected rows, tints
Dark surface#141824
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #1237a8

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#A88312
Analogous left#1282A8
Analogous right#3812A8
Split-complement 1#A83812
Split-complement 2#82A812
Triadic 1#A81237
Triadic 2#37A812
Tetradic#A81282

RGB percentages

Red7.1%
Green21.6%
Blue65.9%

CMYK percentages

Cyan89.3%
Magenta67.3%
Yellow0.0%
Key (black)34.1%

Color previews

#1237a8 text on a black background

contrast 2.14:1

Card sample

#1237a8 text on a white background

contrast 9.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #1237a8;
Background color
Panel with #1237a8 background
background-color: #1237a8;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #1237a8;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(18, 55, 168, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(18, 55, 168, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1237a8;
background: linear-gradient(135deg, #1237a8, #5112A8);

Monochromatic scale

Palettes built from #1237a8

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#1237a8 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#1237a8, answered

What color is #1237a8?

#1237a8 is a dark electric blue, closest to Dark Slate Blue (ΔE2000 8). It sits at 225° on the hue wheel with 81% saturation and 37% lightness, which reads as cool.

What is the RGB value of #1237a8?

rgb(18, 55, 168) — 18 red, 55 green and 168 blue out of 255, or 7.1% / 21.6% / 65.9% by channel.

Is #1237a8 a light or a dark color?

It is a dark color. Relative luminance is 0.0569 and perceived brightness is 28%, so white text on it reaches 9.82:1.

Should I use black or white text on #1237a8?

White. It scores 9.82:1 against #1237a8, versus 2.14:1 for black — AAA at any size.

What is the complementary color of #1237a8?

#A88312 sits directly opposite on the wheel. Softer options are the split-complements #A83812 and #82A812, which give the same contrast with far less vibration.

What colors go well with #1237a8?

For interface work: #F4F6FA as the surface, #C0CBED for borders, #4B5E9B for secondary text, #AC5E0E as an accent and #0C2673 for hover and pressed states. For a palette, the analogous pair #1282A8 and #3812A8 stays calm, while #A88312 is the loudest partner.

What is #1237a8 in CMYK for printing?

cmyk(89%, 67%, 0%, 34%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #1237a8 warm or cool?

Cool — it scores 92 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2412A8; nudged cooler, #104AAA.

Work with #1237a8 in the Color Lab