#142158#142158

#142158 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.5% C 0.101 H 268.7°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#142158
RGBrgb(20, 33, 88)
HSLhsl(229, 63%, 21%)
HSVhsv(229, 77%, 35%)
CMYKcmyk(77.3%, 62.5%, 0%, 65.5%)
CIE-LABlab(15.17, 16.15, -34.86)
CIE-LCHlch(15.17, 38.42, 294.86°)
OKLaboklab(27.49% -0.0022 -0.1005)
OKLCHoklch(27.49% 0.101 268.7)
XYZxyz(2.5932, 1.9408, 9.4686)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142158 #584B14
analogous
#144358 #142158 #291458
triadic
#142158 #581421 #215814
tetradic
#142158 #581443 #584B14 #145829
square
#142158 #581443 #584B14 #145829
split-complementary
#142158 #582914 #435814
monochromatic
#060919 #090E26 #142158 #1F348A #2B46BC

Accessibility & contrast

On white

15.13
#142158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#142158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142158
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142158#FFFFFF#000000##FFFFFF
##1421581.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #142158;
/* rgb */ color: rgb(20, 33, 88);
/* oklch */ color: oklch(27.5% 0.101 268.7);
Tailwind
colors: {
  custom: {
    50: '#5d5b88',
    500: '#142158',
    950: '#000000',
  },
}
SCSS
$custom: #142158;
$custom-light: #5d5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#142158",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 228.529,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27488,
    "c": 0.10054,
    "h": 268.7
  },
  "luminance": 0.01941
}

Semantic roles & 50–950 ramp

primary
#142158
secondary
#907F38
accent
#C742E6
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #142158

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

Preview Lab → · Contrast checker → · Palette generator →

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