#142E8F#142E8F

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

Color values

HEX#142E8F
RGBrgb(20, 46, 143)
HSLhsl(227, 75%, 32%)
HSVhsv(227, 86%, 56%)
CMYKcmyk(86%, 67.8%, 0%, 43.9%)
CIE-LABlab(23.95, 29.31, -55.90)
CIE-LCHlch(23.95, 63.11, 297.67°)
OKLaboklab(35.58% -0.0113 -0.162)
OKLCHoklch(35.58% 0.162 266)
XYZxyz(6.2217, 4.0851, 26.4419)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142E8F #8F7514
analogous
#146C8F #142E8F #38148F
triadic
#142E8F #8F142E #2E8F14
tetradic
#142E8F #8F146C #8F7514 #148F38
square
#142E8F #8F146C #8F7514 #148F38
split-complementary
#142E8F #8F3814 #6C8F14
monochromatic
#050B24 #0C1D59 #142E8F #1C3FC5 #3A5EE3

Accessibility & contrast

On white

11.56
#142E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#142E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142E8F
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142E8F#FFFFFF#000000##FFFFFF
##142E8F1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #142e8f;
/* rgb */ color: rgb(20, 46, 143);
/* oklch */ color: oklch(35.6% 0.162 266.0);
Tailwind
colors: {
  custom: {
    50: '#6b66b1',
    500: '#142e8f',
    950: '#000000',
  },
}
SCSS
$custom: #142e8f;
$custom-light: #6b66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#142e8f",
  "rgb": {
    "r": 20,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 227.317,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35583,
    "c": 0.16238,
    "h": 266
  },
  "luminance": 0.04086
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #142E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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