#142E7C#142E7C

#142E7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.7% C 0.136 H 265.3°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#142E7C
RGBrgb(20, 46, 124)
HSLhsl(225, 72%, 28%)
HSVhsv(225, 84%, 49%)
CMYKcmyk(83.9%, 62.9%, 0%, 51.4%)
CIE-LABlab(22.15, 21.68, -46.94)
CIE-LCHlch(22.15, 51.71, 294.79°)
OKLaboklab(33.7% -0.0111 -0.1358)
OKLCHoklch(33.7% 0.136 265.3)
XYZxyz(4.9023, 3.5574, 19.4931)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142E7C #7C6214
analogous
#14627C #142E7C #2E147C
triadic
#142E7C #7C142E #2E7C14
tetradic
#142E7C #7C1462 #7C6214 #147C2E
square
#142E7C #7C1462 #7C6214 #147C2E
split-complementary
#142E7C #7C2E14 #627C14
monochromatic
#040A1A #0B1A47 #142E7C #1D42B1 #2D59DD

Accessibility & contrast

On white

12.27
#142E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#142E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142E7C
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142E7C#FFFFFF#000000##FFFFFF
##142E7C1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #142e7c;
/* rgb */ color: rgb(20, 46, 124);
/* oklch */ color: oklch(33.7% 0.136 265.3);
Tailwind
colors: {
  custom: {
    50: '#6666a3',
    500: '#142e7c',
    950: '#000000',
  },
}
SCSS
$custom: #142e7c;
$custom-light: #6666a3;
$custom-dark: #000000;
JSON
{
  "hex": "#142e7c",
  "rgb": {
    "r": 20,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 225,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33701,
    "c": 0.13623,
    "h": 265.3
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#142E7C
secondary
#B2943A
accent
#C139EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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