#142F5D#142F5D

#142F5D is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.2% C 0.089 H 260.3°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#142F5D
RGBrgb(20, 47, 93)
HSLhsl(218, 65%, 22%)
HSVhsv(218, 78%, 36%)
CMYKcmyk(78.5%, 49.5%, 0%, 63.5%)
CIE-LABlab(19.93, 7.92, -30.50)
CIE-LCHlch(19.93, 31.51, 284.55°)
OKLaboklab(31.23% -0.0149 -0.0874)
OKLCHoklch(31.23% 0.089 260.3)
XYZxyz(3.2801, 2.9717, 10.7545)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F5D #5D4214
analogous
#14545D #142F5D #1D145D
triadic
#142F5D #5D142F #2F5D14
tetradic
#142F5D #5D1454 #5D4214 #145D1D
square
#142F5D #5D1454 #5D4214 #145D1D
split-complementary
#142F5D #5D1D14 #545D14
monochromatic
#050D19 #09162B #142F5D #1F488F #2A62C2

Accessibility & contrast

On white

13.17
#142F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#142F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142F5D
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F5D#FFFFFF#000000##FFFFFF
##142F5D1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17345F
Deuteranopia (green-blind)
#072D5C
Tritanopia (blue-blind)
#003A41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #142f5d;
/* rgb */ color: rgb(20, 47, 93);
/* oklch */ color: oklch(31.2% 0.089 260.3);
Tailwind
colors: {
  custom: {
    50: '#5d678b',
    500: '#142f5d',
    950: '#000000',
  },
}
SCSS
$custom: #142f5d;
$custom-light: #5d678b;
$custom-dark: #000000;
JSON
{
  "hex": "#142f5d",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 93
  },
  "hsl": {
    "h": 217.808,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31226,
    "c": 0.08869,
    "h": 260.3
  },
  "luminance": 0.02972
}

Semantic roles & 50–950 ramp

primary
#142F5D
secondary
#957238
accent
#AA40E8
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #142F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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