#142F8E#142F8E

#142F8E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.160 H 265.8°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#142F8E
RGBrgb(20, 47, 142)
HSLhsl(227, 75%, 32%)
HSVhsv(227, 86%, 56%)
CMYKcmyk(85.9%, 66.9%, 0%, 44.3%)
CIE-LABlab(24.11, 28.23, -55.02)
CIE-LCHlch(24.11, 61.84, 297.17°)
OKLaboklab(35.67% -0.0118 -0.1594)
OKLCHoklch(35.67% 0.16 265.8)
XYZxyz(6.1858, 4.1340, 26.0579)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F8E #8E7314
analogous
#146C8E #142F8E #36148E
triadic
#142F8E #8E142F #2F8E14
tetradic
#142F8E #8E146C #8E7314 #148E36
square
#142F8E #8E146C #8E7314 #148E36
split-complementary
#142F8E #8E3614 #6C8E14
monochromatic
#050B23 #0C1D58 #142F8E #1C41C4 #395FE3

Accessibility & contrast

On white

11.49
#142F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#142F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142F8E
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F8E#FFFFFF#000000##FFFFFF
##142F8E1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #142f8e;
/* rgb */ color: rgb(20, 47, 142);
/* oklch */ color: oklch(35.7% 0.160 265.8);
Tailwind
colors: {
  custom: {
    50: '#6b67b0',
    500: '#142f8e',
    950: '#000000',
  },
}
SCSS
$custom: #142f8e;
$custom-light: #6b67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#142f8e",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 226.721,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35669,
    "c": 0.15983,
    "h": 265.8
  },
  "luminance": 0.04135
}

Semantic roles & 50–950 ramp

primary
#142F8E
secondary
#C2A43C
accent
#C836F2
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #142F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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