#142262#142262

#142262 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.7% C 0.114 H 268.5°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#142262
RGBrgb(20, 34, 98)
HSLhsl(229, 66%, 23%)
HSVhsv(229, 80%, 38%)
CMYKcmyk(79.6%, 65.3%, 0%, 61.6%)
CIE-LABlab(16.38, 19.58, -39.56)
CIE-LCHlch(16.38, 44.14, 296.34°)
OKLaboklab(28.67% -0.003 -0.1143)
OKLCHoklch(28.67% 0.114 268.5)
XYZxyz(3.0644, 2.1743, 11.8111)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142262 #625414
analogous
#144962 #142262 #2D1462
triadic
#142262 #621422 #226214
tetradic
#142262 #621449 #625414 #14622D
square
#142262 #621449 #625414 #14622D
split-complementary
#142262 #622D14 #496214
monochromatic
#050919 #0A102F #142262 #1E3495 #2945C8

Accessibility & contrast

On white

14.63
#142262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#142262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142262
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142262#FFFFFF#000000##FFFFFF
##1422621.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #142262;
/* rgb */ color: rgb(20, 34, 98);
/* oklch */ color: oklch(28.7% 0.114 268.5);
Tailwind
colors: {
  custom: {
    50: '#5f5c8f',
    500: '#142262',
    950: '#000000',
  },
}
SCSS
$custom: #142262;
$custom-light: #5f5c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#142262",
  "rgb": {
    "r": 20,
    "g": 34,
    "b": 98
  },
  "hsl": {
    "h": 229.231,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28668,
    "c": 0.11434,
    "h": 268.5
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

primary
#142262
secondary
#998838
accent
#CA3FE9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #142262

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

Preview Lab → · Contrast checker → · Palette generator →

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