#12387F#12387F

#12387F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.1% C 0.128 H 261.5°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#12387F
RGBrgb(18, 56, 127)
HSLhsl(219, 75%, 28%)
HSVhsv(219, 86%, 50%)
CMYKcmyk(85.8%, 55.9%, 0%, 50.2%)
CIE-LABlab(25.23, 15.62, -43.83)
CIE-LCHlch(25.23, 46.53, 289.61°)
OKLaboklab(36.08% -0.019 -0.1265)
OKLCHoklch(36.08% 0.128 261.5)
XYZxyz(5.4930, 4.4886, 20.6514)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12387F #7F5912
analogous
#126E7F #12387F #23127F
triadic
#12387F #7F1238 #387F12
tetradic
#12387F #7F126E #7F5912 #127F23
square
#12387F #7F126E #7F5912 #127F23
split-complementary
#12387F #7F2312 #6E7F12
monochromatic
#040C1B #0A2049 #12387F #1A50B5 #2B6AE1

Accessibility & contrast

On white

11.07
#12387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#12387F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12387F
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12387F#FFFFFF#000000##FFFFFF
##12387F1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#00377E
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #12387f;
/* rgb */ color: rgb(18, 56, 127);
/* oklch */ color: oklch(36.1% 0.128 261.5);
Tailwind
colors: {
  custom: {
    50: '#656ea5',
    500: '#12387f',
    950: '#000000',
  },
}
SCSS
$custom: #12387f;
$custom-light: #656ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#12387f",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 219.083,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36075,
    "c": 0.12792,
    "h": 261.5
  },
  "luminance": 0.04489
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12387F

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

Preview Lab → · Contrast checker → · Palette generator →

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