#142A5F#142A5F

#142A5F is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.2% C 0.099 H 264.3°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#142A5F
RGBrgb(20, 42, 95)
HSLhsl(222, 65%, 23%)
HSVhsv(222, 79%, 37%)
CMYKcmyk(78.9%, 55.8%, 0%, 62.7%)
CIE-LABlab(18.50, 12.43, -34.13)
CIE-LCHlch(18.50, 36.32, 290.02°)
OKLaboklab(30.18% -0.0098 -0.0982)
OKLCHoklch(30.18% 0.099 264.3)
XYZxyz(3.1813, 2.6305, 11.1643)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A5F #5F4914
analogous
#144F5F #142A5F #24145F
triadic
#142A5F #5F142A #2A5F14
tetradic
#142A5F #5F144F #5F4914 #145F24
square
#142A5F #5F144F #5F4914 #145F24
split-complementary
#142A5F #5F2414 #4F5F14
monochromatic
#050B19 #09142C #142A5F #1F4092 #2957C4

Accessibility & contrast

On white

13.76
#142A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#142A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A5F
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A5F#FFFFFF#000000##FFFFFF
##142A5F1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073161
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#003740
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #142a5f;
/* rgb */ color: rgb(20, 42, 95);
/* oklch */ color: oklch(30.2% 0.099 264.3);
Tailwind
colors: {
  custom: {
    50: '#5e638d',
    500: '#142a5f',
    950: '#000000',
  },
}
SCSS
$custom: #142a5f;
$custom-light: #5e638d;
$custom-dark: #000000;
JSON
{
  "hex": "#142a5f",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 95
  },
  "hsl": {
    "h": 222.4,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3018,
    "c": 0.0987,
    "h": 264.3
  },
  "luminance": 0.02631
}

Semantic roles & 50–950 ramp

primary
#142A5F
secondary
#977B38
accent
#B740E8
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #142A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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