#142252#142252

#142252 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.090 H 267.8°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#142252
RGBrgb(20, 34, 82)
HSLhsl(226, 61%, 20%)
HSVhsv(226, 76%, 32%)
CMYKcmyk(75.6%, 58.5%, 0%, 67.8%)
CIE-LABlab(14.96, 12.88, -31.15)
CIE-LCHlch(14.96, 33.71, 292.46°)
OKLaboklab(27.17% -0.0035 -0.0896)
OKLCHoklch(27.17% 0.09 267.8)
XYZxyz(2.3830, 1.9017, 8.2225)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142252 #524414
analogous
#144152 #142252 #251452
triadic
#142252 #521422 #225214
tetradic
#142252 #521441 #524414 #145225
square
#142252 #521441 #524414 #145225
split-complementary
#142252 #522514 #415214
monochromatic
#060A19 #080E21 #142252 #203683 #2C4BB4

Accessibility & contrast

On white

15.21
#142252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#142252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142252
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142252#FFFFFF#000000##FFFFFF
##1422521.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022954
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#002E36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #142252;
/* rgb */ color: rgb(20, 34, 82);
/* oklch */ color: oklch(27.2% 0.090 267.8);
Tailwind
colors: {
  custom: {
    50: '#5b5c83',
    500: '#142252',
    950: '#000000',
  },
}
SCSS
$custom: #142252;
$custom-light: #5b5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#142252",
  "rgb": {
    "r": 20,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 226.452,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.27168,
    "c": 0.08967,
    "h": 267.8
  },
  "luminance": 0.01902
}

Semantic roles & 50–950 ramp

primary
#142252
secondary
#8A7838
accent
#C044E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #142252

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

Preview Lab → · Contrast checker → · Palette generator →

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