#142C8F#142C8F

#142C8F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.165 H 266.4°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#142C8F
RGBrgb(20, 44, 143)
HSLhsl(228, 75%, 32%)
HSVhsv(228, 86%, 56%)
CMYKcmyk(86%, 69.2%, 0%, 43.9%)
CIE-LABlab(23.45, 30.65, -56.73)
CIE-LCHlch(23.45, 64.48, 298.38°)
OKLaboklab(35.21% -0.0104 -0.1644)
OKLCHoklch(35.21% 0.165 266.4)
XYZxyz(6.1454, 3.9325, 26.4164)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142C8F #8F7714
analogous
#146A8F #142C8F #3A148F
triadic
#142C8F #8F142C #2C8F14
tetradic
#142C8F #8F146A #8F7714 #148F3A
square
#142C8F #8F146A #8F7714 #148F3A
split-complementary
#142C8F #8F3A14 #6A8F14
monochromatic
#050B24 #0C1B59 #142C8F #1C3DC5 #3A5BE3

Accessibility & contrast

On white

11.75
#142C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#142C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142C8F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142C8F#FFFFFF#000000##FFFFFF
##142C8F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #142c8f;
/* rgb */ color: rgb(20, 44, 143);
/* oklch */ color: oklch(35.2% 0.165 266.4);
Tailwind
colors: {
  custom: {
    50: '#6b65b1',
    500: '#142c8f',
    950: '#000000',
  },
}
SCSS
$custom: #142c8f;
$custom-light: #6b65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#142c8f",
  "rgb": {
    "r": 20,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 228.293,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35214,
    "c": 0.16474,
    "h": 266.4
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#142C8F
secondary
#C3A83C
accent
#CD36F2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #142C8F

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

Preview Lab → · Contrast checker → · Palette generator →

#142C8F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva