#142052#142052

#142052 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.7% C 0.093 H 269.0°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#142052
RGBrgb(20, 32, 82)
HSLhsl(228, 61%, 20%)
HSVhsv(228, 76%, 32%)
CMYKcmyk(75.6%, 61%, 0%, 67.8%)
CIE-LABlab(14.35, 14.38, -32.15)
CIE-LCHlch(14.35, 35.22, 294.11°)
OKLaboklab(26.71% -0.0016 -0.0926)
OKLCHoklch(26.71% 0.093 269)
XYZxyz(2.3275, 1.7907, 8.2040)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142052 #524614
analogous
#143F52 #142052 #271452
triadic
#142052 #521420 #205214
tetradic
#142052 #52143F #524614 #145227
square
#142052 #52143F #524614 #145227
split-complementary
#142052 #522714 #3F5214
monochromatic
#060A19 #080D21 #142052 #203383 #2C46B4

Accessibility & contrast

On white

15.46
#142052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#142052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142052
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142052#FFFFFF#000000##FFFFFF
##1420521.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#002C35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #142052;
/* rgb */ color: rgb(20, 32, 82);
/* oklch */ color: oklch(26.7% 0.093 269.0);
Tailwind
colors: {
  custom: {
    50: '#5b5b83',
    500: '#142052',
    950: '#000000',
  },
}
SCSS
$custom: #142052;
$custom-light: #5b5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#142052",
  "rgb": {
    "r": 20,
    "g": 32,
    "b": 82
  },
  "hsl": {
    "h": 228.387,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.26706,
    "c": 0.09257,
    "h": 269
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#142052
secondary
#8A7A38
accent
#C544E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #142052

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

Preview Lab → · Contrast checker → · Palette generator →

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