#142E7D#142E7D

#142E7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.138 H 265.4°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#142E7D
RGBrgb(20, 46, 125)
HSLhsl(225, 72%, 28%)
HSVhsv(225, 84%, 49%)
CMYKcmyk(84%, 63.2%, 0%, 51%)
CIE-LABlab(22.24, 22.09, -47.43)
CIE-LCHlch(22.24, 52.32, 294.97°)
OKLaboklab(33.8% -0.0111 -0.1372)
OKLCHoklch(33.8% 0.138 265.4)
XYZxyz(4.9658, 3.5828, 19.8279)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142E7D #7D6314
analogous
#14627D #142E7D #2E147D
triadic
#142E7D #7D142E #2E7D14
tetradic
#142E7D #7D1462 #7D6314 #147D2E
square
#142E7D #7D1462 #7D6314 #147D2E
split-complementary
#142E7D #7D2E14 #627D14
monochromatic
#040A1A #0C1B48 #142E7D #1C41B2 #2E59DE

Accessibility & contrast

On white

12.23
#142E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#142E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142E7D
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142E7D#FFFFFF#000000##FFFFFF
##142E7D1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #142e7d;
/* rgb */ color: rgb(20, 46, 125);
/* oklch */ color: oklch(33.8% 0.138 265.4);
Tailwind
colors: {
  custom: {
    50: '#6666a3',
    500: '#142e7d',
    950: '#000000',
  },
}
SCSS
$custom: #142e7d;
$custom-light: #6666a3;
$custom-dark: #000000;
JSON
{
  "hex": "#142e7d",
  "rgb": {
    "r": 20,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 225.143,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33796,
    "c": 0.13765,
    "h": 265.4
  },
  "luminance": 0.03583
}

Semantic roles & 50–950 ramp

primary
#142E7D
secondary
#B2953A
accent
#C239EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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