#142162#142162

#142162 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.5% C 0.116 H 268.9°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#142162
RGBrgb(20, 33, 98)
HSLhsl(230, 66%, 23%)
HSVhsv(230, 80%, 38%)
CMYKcmyk(79.6%, 66.3%, 0%, 61.6%)
CIE-LABlab(16.09, 20.31, -40.02)
CIE-LCHlch(16.09, 44.88, 296.90°)
OKLaboklab(28.46% -0.0022 -0.1157)
OKLCHoklch(28.46% 0.116 268.9)
XYZxyz(3.0362, 2.1180, 11.8017)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142162 #625514
analogous
#144862 #142162 #2E1462
triadic
#142162 #621421 #216214
tetradic
#142162 #621448 #625514 #14622E
square
#142162 #621448 #625514 #14622E
split-complementary
#142162 #622E14 #486214
monochromatic
#050919 #0A102F #142162 #1E3295 #2943C8

Accessibility & contrast

On white

14.75
#142162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#142162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142162
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142162#FFFFFF#000000##FFFFFF
##1421621.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#00323E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #142162;
/* rgb */ color: rgb(20, 33, 98);
/* oklch */ color: oklch(28.5% 0.116 268.9);
Tailwind
colors: {
  custom: {
    50: '#5f5c8f',
    500: '#142162',
    950: '#000000',
  },
}
SCSS
$custom: #142162;
$custom-light: #5f5c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#142162",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 230,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28459,
    "c": 0.11569,
    "h": 268.9
  },
  "luminance": 0.02118
}

Semantic roles & 50–950 ramp

primary
#142162
secondary
#998938
accent
#CD3FE9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #142162

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

Preview Lab → · Contrast checker → · Palette generator →

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