#12237E#12237E

#12237E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.153 H 267.4°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#12237E
RGBrgb(18, 35, 126)
HSLhsl(231, 75%, 28%)
HSVhsv(231, 86%, 49%)
CMYKcmyk(85.7%, 72.2%, 0%, 50.6%)
CIE-LABlab(19.38, 29.92, -52.77)
CIE-LCHlch(19.38, 60.66, 299.56°)
OKLaboklab(31.7% -0.007 -0.1529)
OKLCHoklch(31.7% 0.153 267.4)
XYZxyz(4.6151, 2.8365, 20.0389)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12237E #7E6D12
analogous
#12597E #12237E #37127E
triadic
#12237E #7E1223 #237E12
tetradic
#12237E #7E1259 #7E6D12 #127E37
square
#12237E #7E1259 #7E6D12 #127E37
split-complementary
#12237E #7E3712 #597E12
monochromatic
#04071B #0A1448 #12237E #1A32B4 #2A47E1

Accessibility & contrast

On white

13.40
#12237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#12237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12237E
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12237E#FFFFFF#000000##FFFFFF
##12237E1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #12237e;
/* rgb */ color: rgb(18, 35, 126);
/* oklch */ color: oklch(31.7% 0.153 267.4);
Tailwind
colors: {
  custom: {
    50: '#675ea4',
    500: '#12237e',
    950: '#000000',
  },
}
SCSS
$custom: #12237e;
$custom-light: #675ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#12237e",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 230.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.317,
    "c": 0.15309,
    "h": 267.4
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#12237E
secondary
#B4A038
accent
#D436F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #12237E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#12237E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva