#142862#142862

#142862 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.0% C 0.106 H 265.8°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#142862
RGBrgb(20, 40, 98)
HSLhsl(225, 66%, 23%)
HSVhsv(225, 80%, 38%)
CMYKcmyk(79.6%, 59.2%, 0%, 61.6%)
CIE-LABlab(18.13, 15.18, -36.70)
CIE-LCHlch(18.13, 39.72, 292.47°)
OKLaboklab(29.98% -0.0078 -0.1058)
OKLCHoklch(29.98% 0.106 265.8)
XYZxyz(3.2511, 2.5478, 11.8733)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142862 #624E14
analogous
#144F62 #142862 #271462
triadic
#142862 #621428 #286214
tetradic
#142862 #62144F #624E14 #146227
square
#142862 #62144F #624E14 #146227
split-complementary
#142862 #622714 #4F6214
monochromatic
#050A19 #0A132F #142862 #1E3D95 #2951C8

Accessibility & contrast

On white

13.91
#142862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#142862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142862
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142862#FFFFFF#000000##FFFFFF
##1428621.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#002961
Tritanopia (blue-blind)
#003640
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #142862;
/* rgb */ color: rgb(20, 40, 98);
/* oklch */ color: oklch(30.0% 0.106 265.8);
Tailwind
colors: {
  custom: {
    50: '#5f618f',
    500: '#142862',
    950: '#000000',
  },
}
SCSS
$custom: #142862;
$custom-light: #5f618f;
$custom-dark: #000000;
JSON
{
  "hex": "#142862",
  "rgb": {
    "r": 20,
    "g": 40,
    "b": 98
  },
  "hsl": {
    "h": 224.615,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29981,
    "c": 0.10609,
    "h": 265.8
  },
  "luminance": 0.02548
}

Semantic roles & 50–950 ramp

primary
#142862
secondary
#998138
accent
#BD3FE9
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #142862

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

Preview Lab → · Contrast checker → · Palette generator →

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