#142242#142242

#142242 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.8% C 0.063 H 264.6°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#142242
RGBrgb(20, 34, 66)
HSLhsl(222, 53%, 17%)
HSVhsv(222, 70%, 26%)
CMYKcmyk(69.7%, 48.5%, 0%, 74.1%)
CIE-LABlab(13.74, 6.13, -22.11)
CIE-LCHlch(13.74, 22.95, 285.49°)
OKLaboklab(25.85% -0.006 -0.063)
OKLCHoklch(25.85% 0.063 264.6)
XYZxyz(1.8435, 1.6860, 5.3815)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142242 #423414
analogous
#143942 #142242 #1D1442
triadic
#142242 #421422 #224214
tetradic
#142242 #421439 #423414 #14421D
square
#142242 #421439 #423414 #14421D
split-complementary
#142242 #421D14 #394214
monochromatic
#070C17 #070C17 #142242 #223A71 #3052A0

Accessibility & contrast

On white

15.70
#142242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#142242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142242
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142242#FFFFFF#000000##FFFFFF
##1422421.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132543
Deuteranopia (green-blind)
#0D2141
Tritanopia (blue-blind)
#00292E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #142242;
/* rgb */ color: rgb(20, 34, 66);
/* oklch */ color: oklch(25.8% 0.063 264.6);
Tailwind
colors: {
  custom: {
    50: '#575c76',
    500: '#142242',
    950: '#000000',
  },
}
SCSS
$custom: #142242;
$custom-light: #575c76;
$custom-dark: #000000;
JSON
{
  "hex": "#142242",
  "rgb": {
    "r": 20,
    "g": 34,
    "b": 66
  },
  "hsl": {
    "h": 221.739,
    "s": 53.488,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25849,
    "c": 0.06329,
    "h": 264.6
  },
  "luminance": 0.01686
}

Semantic roles & 50–950 ramp

primary
#142242
secondary
#7A6638
accent
#B04BDD
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #142242

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

Preview Lab → · Contrast checker → · Palette generator →

#142242 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva