#12336C#12336C

#12336C is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.3% C 0.107 H 260.6°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#12336C
RGBrgb(18, 51, 108)
HSLhsl(218, 71%, 25%)
HSVhsv(218, 83%, 42%)
CMYKcmyk(83.3%, 52.8%, 0%, 57.6%)
CIE-LABlab(22.23, 11.14, -36.59)
CIE-LCHlch(22.23, 38.25, 286.94°)
OKLaboklab(33.32% -0.0175 -0.1053)
OKLCHoklch(33.32% 0.107 260.6)
XYZxyz(4.1391, 3.5785, 14.6570)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12336C #6C4B12
analogous
#12606C #12336C #1E126C
triadic
#12336C #6C1233 #336C12
tetradic
#12336C #6C1260 #6C4B12 #126C1E
square
#12336C #6C1260 #6C4B12 #126C1E
split-complementary
#12336C #6C1E12 #606C12
monochromatic
#040C1A #091A38 #12336C #1B4CA0 #2365D5

Accessibility & contrast

On white

12.24
#12336C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#12336C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12336C
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12336C#FFFFFF#000000##FFFFFF
##12336C1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10396E
Deuteranopia (green-blind)
#00316B
Tritanopia (blue-blind)
#00414A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #12336c;
/* rgb */ color: rgb(18, 51, 108);
/* oklch */ color: oklch(33.3% 0.107 260.6);
Tailwind
colors: {
  custom: {
    50: '#606a96',
    500: '#12336c',
    950: '#000000',
  },
}
SCSS
$custom: #12336c;
$custom-light: #606a96;
$custom-dark: #000000;
JSON
{
  "hex": "#12336c",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 108
  },
  "hsl": {
    "h": 218,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.3332,
    "c": 0.10676,
    "h": 260.6
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#12336C
secondary
#A37B36
accent
#AC3AEE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#05060D
muted
#7A7A7E

Preview Lab

Preview with #12336C

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

Preview Lab → · Contrast checker → · Palette generator →

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