#12337E#12337E

#12337E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 34.9% C 0.133 H 263.2°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#12337E
RGBrgb(18, 51, 126)
HSLhsl(222, 75%, 28%)
HSVhsv(222, 86%, 49%)
CMYKcmyk(85.7%, 59.5%, 0%, 50.6%)
CIE-LABlab(23.68, 18.76, -45.72)
CIE-LCHlch(23.68, 49.42, 292.31°)
OKLaboklab(34.88% -0.0156 -0.1321)
OKLCHoklch(34.88% 0.133 263.2)
XYZxyz(5.1978, 4.0020, 20.2331)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12337E #7E5D12
analogous
#12697E #12337E #27127E
triadic
#12337E #7E1233 #337E12
tetradic
#12337E #7E1269 #7E5D12 #127E27
square
#12337E #7E1269 #7E5D12 #127E27
split-complementary
#12337E #7E2712 #697E12
monochromatic
#040B1B #0A1D48 #12337E #1A49B4 #2A62E1

Accessibility & contrast

On white

11.66
#12337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#12337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12337E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12337E#FFFFFF#000000##FFFFFF
##12337E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #12337e;
/* rgb */ color: rgb(18, 51, 126);
/* oklch */ color: oklch(34.9% 0.133 263.2);
Tailwind
colors: {
  custom: {
    50: '#656aa4',
    500: '#12337e',
    950: '#000000',
  },
}
SCSS
$custom: #12337e;
$custom-light: #656aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#12337e",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 221.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34879,
    "c": 0.13306,
    "h": 263.2
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

primary
#12337E
secondary
#B48E38
accent
#B836F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12337E

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

Preview Lab → · Contrast checker → · Palette generator →

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