#142F7B#142F7B

#142F7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.134 H 265.0°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#142F7B
RGBrgb(20, 47, 123)
HSLhsl(224, 72%, 28%)
HSVhsv(224, 84%, 48%)
CMYKcmyk(83.7%, 61.8%, 0%, 51.8%)
CIE-LABlab(22.34, 20.55, -46.00)
CIE-LCHlch(22.34, 50.38, 294.08°)
OKLaboklab(33.82% -0.0117 -0.133)
OKLCHoklch(33.82% 0.134 265)
XYZxyz(4.8789, 3.6112, 19.1749)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F7B #7B6014
analogous
#14627B #142F7B #2C147B
triadic
#142F7B #7B142F #2F7B14
tetradic
#142F7B #7B1462 #7B6014 #147B2C
square
#142F7B #7B1462 #7B6014 #147B2C
split-complementary
#142F7B #7B2C14 #627B14
monochromatic
#040A1A #0B1B46 #142F7B #1D43B0 #2D5BDD

Accessibility & contrast

On white

12.19
#142F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#142F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142F7B
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F7B#FFFFFF#000000##FFFFFF
##142F7B1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #142f7b;
/* rgb */ color: rgb(20, 47, 123);
/* oklch */ color: oklch(33.8% 0.134 265.0);
Tailwind
colors: {
  custom: {
    50: '#6567a2',
    500: '#142f7b',
    950: '#000000',
  },
}
SCSS
$custom: #142f7b;
$custom-light: #6567a2;
$custom-dark: #000000;
JSON
{
  "hex": "#142f7b",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 224.272,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33816,
    "c": 0.13351,
    "h": 265
  },
  "luminance": 0.03612
}

Semantic roles & 50–950 ramp

primary
#142F7B
secondary
#B1923A
accent
#BF39EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #142F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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