#142A4E#142A4E

#142A4E is a dark, moderate blue. Relative luminance 0.024; OKLCH L 28.8% C 0.072 H 259.8°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#142A4E
RGBrgb(20, 42, 78)
HSLhsl(217, 59%, 19%)
HSVhsv(217, 74%, 31%)
CMYKcmyk(74.4%, 46.2%, 0%, 69.4%)
CIE-LABlab(17.25, 5.21, -24.77)
CIE-LCHlch(17.25, 25.31, 281.89°)
OKLaboklab(28.82% -0.0128 -0.0707)
OKLCHoklch(28.82% 0.072 259.8)
XYZxyz(2.4911, 2.3545, 7.5294)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A4E #4E3814
analogous
#14474E #142A4E #1B144E
triadic
#142A4E #4E142A #2A4E14
tetradic
#142A4E #4E1447 #4E3814 #144E1B
square
#142A4E #4E1447 #4E3814 #144E1B
split-complementary
#142A4E #4E1B14 #474E14
monochromatic
#060D18 #08101D #142A4E #20447F #2D5EAF

Accessibility & contrast

On white

14.28
#142A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#142A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A4E
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A4E#FFFFFF#000000##FFFFFF
##142A4E1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192D4F
Deuteranopia (green-blind)
#10284D
Tritanopia (blue-blind)
#003238
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #142a4e;
/* rgb */ color: rgb(20, 42, 78);
/* oklch */ color: oklch(28.8% 0.072 259.8);
Tailwind
colors: {
  custom: {
    50: '#596380',
    500: '#142a4e',
    950: '#000000',
  },
}
SCSS
$custom: #142a4e;
$custom-light: #596380;
$custom-dark: #000000;
JSON
{
  "hex": "#142a4e",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 217.241,
    "s": 59.184,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28819,
    "c": 0.07183,
    "h": 259.8
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#142A4E
secondary
#866838
accent
#A745E2
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #142A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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