#142F5F#142F5F

#142F5F is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.4% C 0.092 H 260.9°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#142F5F
RGBrgb(20, 47, 95)
HSLhsl(218, 65%, 23%)
HSVhsv(218, 79%, 37%)
CMYKcmyk(78.9%, 50.5%, 0%, 62.7%)
CIE-LABlab(20.07, 8.76, -31.59)
CIE-LCHlch(20.07, 32.78, 285.51°)
OKLaboklab(31.38% -0.0145 -0.0906)
OKLCHoklch(31.38% 0.092 260.9)
XYZxyz(3.3698, 3.0076, 11.2272)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F5F #5F4414
analogous
#14545F #142F5F #1F145F
triadic
#142F5F #5F142F #2F5F14
tetradic
#142F5F #5F1454 #5F4414 #145F1F
square
#142F5F #5F1454 #5F4414 #145F1F
split-complementary
#142F5F #5F1F14 #545F14
monochromatic
#050D19 #09162C #142F5F #1F4892 #2961C4

Accessibility & contrast

On white

13.11
#142F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#142F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142F5F
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F5F#FFFFFF#000000##FFFFFF
##142F5F1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153461
Deuteranopia (green-blind)
#032D5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #142f5f;
/* rgb */ color: rgb(20, 47, 95);
/* oklch */ color: oklch(31.4% 0.092 260.9);
Tailwind
colors: {
  custom: {
    50: '#5d678d',
    500: '#142f5f',
    950: '#000000',
  },
}
SCSS
$custom: #142f5f;
$custom-light: #5d678d;
$custom-dark: #000000;
JSON
{
  "hex": "#142f5f",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 95
  },
  "hsl": {
    "h": 218.4,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.31383,
    "c": 0.09179,
    "h": 260.9
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#142F5F
secondary
#977538
accent
#AB40E8
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #142F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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