#142A5E#142A5E

#142A5E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.1% C 0.097 H 264.1°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#142A5E
RGBrgb(20, 42, 94)
HSLhsl(222, 65%, 22%)
HSVhsv(222, 79%, 37%)
CMYKcmyk(78.7%, 55.3%, 0%, 63.1%)
CIE-LABlab(18.42, 12.01, -33.60)
CIE-LCHlch(18.42, 35.68, 289.67°)
OKLaboklab(30.09% -0.0099 -0.0966)
OKLCHoklch(30.09% 0.097 264.1)
XYZxyz(3.1361, 2.6125, 10.9265)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A5E #5E4814
analogous
#144F5E #142A5E #23145E
triadic
#142A5E #5E142A #2A5E14
tetradic
#142A5E #5E144F #5E4814 #145E23
square
#142A5E #5E144F #5E4814 #145E23
split-complementary
#142A5E #5E2314 #4F5E14
monochromatic
#050B19 #09132C #142A5E #1F4190 #2957C3

Accessibility & contrast

On white

13.79
#142A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#142A5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A5E
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A5E#FFFFFF#000000##FFFFFF
##142A5E1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083060
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #142a5e;
/* rgb */ color: rgb(20, 42, 94);
/* oklch */ color: oklch(30.1% 0.097 264.1);
Tailwind
colors: {
  custom: {
    50: '#5d638c',
    500: '#142a5e',
    950: '#000000',
  },
}
SCSS
$custom: #142a5e;
$custom-light: #5d638c;
$custom-dark: #000000;
JSON
{
  "hex": "#142a5e",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 94
  },
  "hsl": {
    "h": 222.162,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30094,
    "c": 0.09715,
    "h": 264.1
  },
  "luminance": 0.02613
}

Semantic roles & 50–950 ramp

primary
#142A5E
secondary
#967A38
accent
#B640E8
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #142A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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