#142962#142962

#142962 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.2% C 0.105 H 265.3°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#142962
RGBrgb(20, 41, 98)
HSLhsl(224, 66%, 23%)
HSVhsv(224, 80%, 38%)
CMYKcmyk(79.6%, 58.2%, 0%, 61.6%)
CIE-LABlab(18.44, 14.44, -36.21)
CIE-LCHlch(18.44, 38.98, 291.75°)
OKLaboklab(30.21% -0.0086 -0.1043)
OKLCHoklch(30.21% 0.105 265.3)
XYZxyz(3.2853, 2.6161, 11.8847)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142962 #624D14
analogous
#145062 #142962 #261462
triadic
#142962 #621429 #296214
tetradic
#142962 #621450 #624D14 #146226
square
#142962 #621450 #624D14 #146226
split-complementary
#142962 #622614 #506214
monochromatic
#050B19 #0A142F #142962 #1E3E95 #2954C8

Accessibility & contrast

On white

13.79
#142962 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#142962 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##142962#FFFFFF#000000##FFFFFF
##1429621.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)
#003164
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#003741
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #142962;
/* rgb */ color: rgb(20, 41, 98);
/* oklch */ color: oklch(30.2% 0.105 265.3);
Tailwind
colors: {
  custom: {
    50: '#5f628f',
    500: '#142962',
    950: '#000000',
  },
}
SCSS
$custom: #142962;
$custom-light: #5f628f;
$custom-dark: #000000;
JSON
{
  "hex": "#142962",
  "rgb": {
    "r": 20,
    "g": 41,
    "b": 98
  },
  "hsl": {
    "h": 223.846,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30209,
    "c": 0.10471,
    "h": 265.3
  },
  "luminance": 0.02616
}

Semantic roles & 50–950 ramp

primary
#142962
secondary
#997F38
accent
#BB3FE9
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #142962

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

Preview Lab → · Contrast checker → · Palette generator →

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