#12336B#12336B

#12336B is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.2% C 0.105 H 260.3°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#12336B
RGBrgb(18, 51, 107)
HSLhsl(218, 71%, 25%)
HSVhsv(218, 83%, 42%)
CMYKcmyk(83.2%, 52.3%, 0%, 58%)
CIE-LABlab(22.15, 10.72, -36.07)
CIE-LCHlch(22.15, 37.63, 286.55°)
OKLaboklab(33.24% -0.0177 -0.1038)
OKLCHoklch(33.24% 0.105 260.3)
XYZxyz(4.0862, 3.5573, 14.3783)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12336B #6B4A12
analogous
#12606B #12336B #1E126B
triadic
#12336B #6B1233 #336B12
tetradic
#12336B #6B1260 #6B4A12 #126B1E
square
#12336B #6B1260 #6B4A12 #126B1E
split-complementary
#12336B #6B1E12 #606B12
monochromatic
#040C1A #091A37 #12336B #1B4C9F #2465D4

Accessibility & contrast

On white

12.27
#12336B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#12336B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12336B
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12336B#FFFFFF#000000##FFFFFF
##12336B1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11396D
Deuteranopia (green-blind)
#00316A
Tritanopia (blue-blind)
#00404A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #12336b;
/* rgb */ color: rgb(18, 51, 107);
/* oklch */ color: oklch(33.2% 0.105 260.3);
Tailwind
colors: {
  custom: {
    50: '#606a96',
    500: '#12336b',
    950: '#000000',
  },
}
SCSS
$custom: #12336b;
$custom-light: #606a96;
$custom-dark: #000000;
JSON
{
  "hex": "#12336b",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 217.753,
    "s": 71.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33238,
    "c": 0.10527,
    "h": 260.3
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#12336B
secondary
#A27A36
accent
#AB3AEE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#05060D
muted
#7A7A7E

Preview Lab

Preview with #12336B

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

Preview Lab → · Contrast checker → · Palette generator →

#12336B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva