#12487F#12487F

#12487F is a dark, moderate cyan. Relative luminance 0.063; OKLCH L 39.9% C 0.108 H 252.8°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#12487F
RGBrgb(18, 72, 127)
HSLhsl(210, 75%, 28%)
HSVhsv(210, 86%, 50%)
CMYKcmyk(85.8%, 43.3%, 0%, 50.2%)
CIE-LABlab(30.14, 4.48, -35.91)
CIE-LCHlch(30.14, 36.19, 277.11°)
OKLaboklab(39.86% -0.0317 -0.1028)
OKLCHoklch(39.86% 0.108 252.8)
XYZxyz(6.3961, 6.2948, 20.9525)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12487F #7F4912
analogous
#127E7F #12487F #12127F
triadic
#12487F #7F1248 #487F12
tetradic
#12487F #7F127E #7F4912 #127F12
square
#12487F #7F127E #7F4912 #127F12
split-complementary
#12487F #7F1212 #7E7F12
monochromatic
#040F1B #0A2A49 #12487F #1A66B5 #2B85E1

Accessibility & contrast

On white

9.30
#12487F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#12487F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12487F
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12487F#FFFFFF#000000##FFFFFF
##12487F1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4C81
Deuteranopia (green-blind)
#19437E
Tritanopia (blue-blind)
#00555D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #12487f;
/* rgb */ color: rgb(18, 72, 127);
/* oklch */ color: oklch(39.9% 0.108 252.8);
Tailwind
colors: {
  custom: {
    50: '#647aa4',
    500: '#12487f',
    950: '#000000',
  },
}
SCSS
$custom: #12487f;
$custom-light: #647aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#12487f",
  "rgb": {
    "r": 18,
    "g": 72,
    "b": 127
  },
  "hsl": {
    "h": 210.275,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.39862,
    "c": 0.10761,
    "h": 252.8
  },
  "luminance": 0.06296
}

Semantic roles & 50–950 ramp

primary
#12487F
secondary
#B57738
accent
#9536F2
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#06090F
muted
#7A7B7F

Preview Lab

Preview with #12487F

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

Preview Lab → · Contrast checker → · Palette generator →

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