#12387E#12387E

#12387E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.0% C 0.126 H 261.3°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#12387E
RGBrgb(18, 56, 126)
HSLhsl(219, 75%, 28%)
HSVhsv(219, 86%, 49%)
CMYKcmyk(85.7%, 55.6%, 0%, 50.6%)
CIE-LABlab(25.15, 15.20, -43.33)
CIE-LCHlch(25.15, 45.92, 289.33°)
OKLaboklab(35.99% -0.0191 -0.125)
OKLCHoklch(35.99% 0.126 261.3)
XYZxyz(5.4282, 4.4626, 20.3099)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12387E #7E5812
analogous
#126E7E #12387E #22127E
triadic
#12387E #7E1238 #387E12
tetradic
#12387E #7E126E #7E5812 #127E22
square
#12387E #7E126E #7E5812 #127E22
split-complementary
#12387E #7E2212 #6E7E12
monochromatic
#040C1B #0A2048 #12387E #1A50B4 #2A6AE1

Accessibility & contrast

On white

11.10
#12387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12387E
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12387E#FFFFFF#000000##FFFFFF
##12387E1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004180
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #12387e;
/* rgb */ color: rgb(18, 56, 126);
/* oklch */ color: oklch(36.0% 0.126 261.3);
Tailwind
colors: {
  custom: {
    50: '#656ea4',
    500: '#12387e',
    950: '#000000',
  },
}
SCSS
$custom: #12387e;
$custom-light: #656ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#12387e",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 218.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35989,
    "c": 0.12648,
    "h": 261.3
  },
  "luminance": 0.04463
}

Semantic roles & 50–950 ramp

primary
#12387E
secondary
#B48838
accent
#B036F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #12387E

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

Preview Lab → · Contrast checker → · Palette generator →

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