#142E8E#142E8E

#142E8E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.161 H 266.0°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#142E8E
RGBrgb(20, 46, 142)
HSLhsl(227, 75%, 32%)
HSVhsv(227, 86%, 56%)
CMYKcmyk(85.9%, 67.6%, 0%, 44.3%)
CIE-LABlab(23.85, 28.91, -55.44)
CIE-LCHlch(23.85, 62.53, 297.54°)
OKLaboklab(35.48% -0.0113 -0.1606)
OKLCHoklch(35.48% 0.161 266)
XYZxyz(6.1463, 4.0550, 26.0447)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142E8E #8E7414
analogous
#146B8E #142E8E #37148E
triadic
#142E8E #8E142E #2E8E14
tetradic
#142E8E #8E146B #8E7414 #148E37
square
#142E8E #8E146B #8E7414 #148E37
split-complementary
#142E8E #8E3714 #6B8E14
monochromatic
#050B23 #0C1D58 #142E8E #1C3FC4 #395DE3

Accessibility & contrast

On white

11.59
#142E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#142E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142E8E
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142E8E#FFFFFF#000000##FFFFFF
##142E8E1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #142e8e;
/* rgb */ color: rgb(20, 46, 142);
/* oklch */ color: oklch(35.5% 0.161 266.0);
Tailwind
colors: {
  custom: {
    50: '#6b66b0',
    500: '#142e8e',
    950: '#000000',
  },
}
SCSS
$custom: #142e8e;
$custom-light: #6b66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#142e8e",
  "rgb": {
    "r": 20,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 227.213,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3548,
    "c": 0.16104,
    "h": 266
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#142E8E
secondary
#C2A53C
accent
#CA36F2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #142E8E

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

Preview Lab → · Contrast checker → · Palette generator →

#142E8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva