#12387A#12387A

#12387A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 35.7% C 0.121 H 260.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#12387A
RGBrgb(18, 56, 122)
HSLhsl(218, 74%, 27%)
HSVhsv(218, 85%, 48%)
CMYKcmyk(85.2%, 54.1%, 0%, 52.2%)
CIE-LABlab(24.83, 13.51, -41.32)
CIE-LCHlch(24.83, 43.47, 288.11°)
OKLaboklab(35.65% -0.0196 -0.1191)
OKLCHoklch(35.65% 0.121 260.7)
XYZxyz(5.1752, 4.3615, 18.9777)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12387A #7A5412
analogous
#126C7A #12387A #20127A
triadic
#12387A #7A1238 #387A12
tetradic
#12387A #7A126C #7A5412 #127A20
square
#12387A #7A126C #7A5412 #127A20
split-complementary
#12387A #7A2012 #6C7A12
monochromatic
#040C1B #0A2045 #12387A #1A50AF #276ADF

Accessibility & contrast

On white

11.22
#12387A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#12387A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12387A
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12387A#FFFFFF#000000##FFFFFF
##12387A1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09407C
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #12387a;
/* rgb */ color: rgb(18, 56, 122);
/* oklch */ color: oklch(35.7% 0.121 260.7);
Tailwind
colors: {
  custom: {
    50: '#646ea1',
    500: '#12387a',
    950: '#000000',
  },
}
SCSS
$custom: #12387a;
$custom-light: #646ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#12387a",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 122
  },
  "hsl": {
    "h": 218.077,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35651,
    "c": 0.1207,
    "h": 260.7
  },
  "luminance": 0.04362
}

Semantic roles & 50–950 ramp

primary
#12387A
secondary
#B08438
accent
#AD37F1
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #12387A

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

Preview Lab → · Contrast checker → · Palette generator →

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