#12387D#12387D

#12387D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 35.9% C 0.125 H 261.2°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#12387D
RGBrgb(18, 56, 125)
HSLhsl(219, 75%, 28%)
HSVhsv(219, 86%, 49%)
CMYKcmyk(85.6%, 55.2%, 0%, 51%)
CIE-LABlab(25.07, 14.78, -42.83)
CIE-LCHlch(25.07, 45.31, 289.03°)
OKLaboklab(35.9% -0.0192 -0.1235)
OKLCHoklch(35.9% 0.125 261.2)
XYZxyz(5.3640, 4.4370, 19.9718)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12387D #7D5712
analogous
#126D7D #12387D #22127D
triadic
#12387D #7D1238 #387D12
tetradic
#12387D #7D126D #7D5712 #127D22
square
#12387D #7D126D #7D5712 #127D22
split-complementary
#12387D #7D2212 #6D7D12
monochromatic
#040C1B #0A2048 #12387D #1A50B2 #296AE0

Accessibility & contrast

On white

11.13
#12387D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#12387D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12387D
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12387D#FFFFFF#000000##FFFFFF
##12387D1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02417F
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #12387d;
/* rgb */ color: rgb(18, 56, 125);
/* oklch */ color: oklch(35.9% 0.125 261.2);
Tailwind
colors: {
  custom: {
    50: '#656ea3',
    500: '#12387d',
    950: '#000000',
  },
}
SCSS
$custom: #12387d;
$custom-light: #656ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#12387d",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 218.692,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35904,
    "c": 0.12503,
    "h": 261.2
  },
  "luminance": 0.04438
}

Semantic roles & 50–950 ramp

primary
#12387D
secondary
#B38738
accent
#AF36F1
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #12387D

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

Preview Lab → · Contrast checker → · Palette generator →

#12387D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva