#12427F#12427F

#12427F is a dark, moderate cyan. Relative luminance 0.056; OKLCH L 38.4% C 0.115 H 256.6°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#12427F
RGBrgb(18, 66, 127)
HSLhsl(214, 75%, 28%)
HSVhsv(214, 86%, 50%)
CMYKcmyk(85.8%, 48%, 0%, 50.2%)
CIE-LABlab(28.27, 8.59, -38.92)
CIE-LCHlch(28.27, 39.86, 282.44°)
OKLaboklab(38.4% -0.0267 -0.1118)
OKLCHoklch(38.4% 0.115 256.6)
XYZxyz(6.0270, 5.5566, 20.8294)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12427F #7F4F12
analogous
#12787F #12427F #18127F
triadic
#12427F #7F1242 #427F12
tetradic
#12427F #7F1278 #7F4F12 #127F18
square
#12427F #7F1278 #7F4F12 #127F18
split-complementary
#12427F #7F1812 #787F12
monochromatic
#040E1B #0A2649 #12427F #1A5EB5 #2B7BE1

Accessibility & contrast

On white

9.95
#12427F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#12427F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12427F
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12427F#FFFFFF#000000##FFFFFF
##12427F1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204881
Deuteranopia (green-blind)
#023E7E
Tritanopia (blue-blind)
#00515A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #12427f;
/* rgb */ color: rgb(18, 66, 127);
/* oklch */ color: oklch(38.4% 0.115 256.6);
Tailwind
colors: {
  custom: {
    50: '#6575a4',
    500: '#12427f',
    950: '#000000',
  },
}
SCSS
$custom: #12427f;
$custom-light: #6575a4;
$custom-dark: #000000;
JSON
{
  "hex": "#12427f",
  "rgb": {
    "r": 18,
    "g": 66,
    "b": 127
  },
  "hsl": {
    "h": 213.578,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38404,
    "c": 0.11496,
    "h": 256.6
  },
  "luminance": 0.05557
}

Semantic roles & 50–950 ramp

primary
#12427F
secondary
#B57E38
accent
#9F36F2
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#06080F
muted
#7A7B7F

Preview Lab

Preview with #12427F

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

Preview Lab → · Contrast checker → · Palette generator →

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