#12387B#12387B

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

Color values

HEX#12387B
RGBrgb(18, 56, 123)
HSLhsl(218, 74%, 28%)
HSVhsv(218, 85%, 48%)
CMYKcmyk(85.4%, 54.5%, 0%, 51.8%)
CIE-LABlab(24.91, 13.93, -41.82)
CIE-LCHlch(24.91, 44.08, 288.42°)
OKLaboklab(35.74% -0.0194 -0.1206)
OKLCHoklch(35.74% 0.122 260.8)
XYZxyz(5.2375, 4.3864, 19.3057)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12387B #7B5512
analogous
#126C7B #12387B #21127B
triadic
#12387B #7B1238 #387B12
tetradic
#12387B #7B126C #7B5512 #127B21
square
#12387B #7B126C #7B5512 #127B21
split-complementary
#12387B #7B2112 #6C7B12
monochromatic
#040C1B #0A2046 #12387B #1A50B0 #286AE0

Accessibility & contrast

On white

11.19
#12387B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#12387B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12387B
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12387B#FFFFFF#000000##FFFFFF
##12387B1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06407D
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #12387b;
/* rgb */ color: rgb(18, 56, 123);
/* oklch */ color: oklch(35.7% 0.122 260.8);
Tailwind
colors: {
  custom: {
    50: '#646ea2',
    500: '#12387b',
    950: '#000000',
  },
}
SCSS
$custom: #12387b;
$custom-light: #646ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#12387b",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 123
  },
  "hsl": {
    "h": 218.286,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35735,
    "c": 0.12215,
    "h": 260.8
  },
  "luminance": 0.04387
}

Semantic roles & 50–950 ramp

primary
#12387B
secondary
#B18538
accent
#AE37F1
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #12387B

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

Preview Lab → · Contrast checker → · Palette generator →

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