#142161#142161

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

Color values

HEX#142161
RGBrgb(20, 33, 97)
HSLhsl(230, 66%, 23%)
HSVhsv(230, 79%, 38%)
CMYKcmyk(79.4%, 66%, 0%, 62%)
CIE-LABlab(16.00, 19.90, -39.52)
CIE-LCHlch(16.00, 44.24, 296.73°)
OKLaboklab(28.36% -0.0022 -0.1142)
OKLCHoklch(28.36% 0.114 268.9)
XYZxyz(2.9893, 2.0992, 11.5546)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142161 #615414
analogous
#144761 #142161 #2D1461
triadic
#142161 #611421 #216114
tetradic
#142161 #611447 #615414 #14612D
square
#142161 #611447 #615414 #14612D
split-complementary
#142161 #612D14 #476114
monochromatic
#050919 #0A102E #142161 #1E3294 #2944C6

Accessibility & contrast

On white

14.79
#142161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142161
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142161#FFFFFF#000000##FFFFFF
##1421611.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B63
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#00313D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #142161;
/* rgb */ color: rgb(20, 33, 97);
/* oklch */ color: oklch(28.4% 0.114 268.9);
Tailwind
colors: {
  custom: {
    50: '#5f5c8f',
    500: '#142161',
    950: '#000000',
  },
}
SCSS
$custom: #142161;
$custom-light: #5f5c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#142161",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 229.87,
    "s": 65.812,
    "l": 22.941
  },
  "oklch": {
    "l": 0.2836,
    "c": 0.1142,
    "h": 268.9
  },
  "luminance": 0.021
}

Semantic roles & 50–950 ramp

primary
#142161
secondary
#988838
accent
#CC3FE9
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #142161

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

Preview Lab → · Contrast checker → · Palette generator →

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