#142A63#142A63

#142A63 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.105 H 264.9°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#142A63
RGBrgb(20, 42, 99)
HSLhsl(223, 66%, 23%)
HSVhsv(223, 80%, 39%)
CMYKcmyk(79.8%, 57.6%, 0%, 61.2%)
CIE-LABlab(18.82, 14.13, -36.24)
CIE-LCHlch(18.82, 38.90, 291.30°)
OKLaboklab(30.53% -0.0094 -0.1044)
OKLCHoklch(30.53% 0.105 264.9)
XYZxyz(3.3678, 2.7051, 12.1466)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A63 #634D14
analogous
#145163 #142A63 #251463
triadic
#142A63 #63142A #2A6314
tetradic
#142A63 #631451 #634D14 #146325
square
#142A63 #631451 #634D14 #146325
split-complementary
#142A63 #632514 #516314
monochromatic
#050B19 #0A1430 #142A63 #1E4096 #2955C9

Accessibility & contrast

On white

13.63
#142A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#142A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A63
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A63#FFFFFF#000000##FFFFFF
##142A631.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003265
Deuteranopia (green-blind)
#002A62
Tritanopia (blue-blind)
#003842
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #142a63;
/* rgb */ color: rgb(20, 42, 99);
/* oklch */ color: oklch(30.5% 0.105 264.9);
Tailwind
colors: {
  custom: {
    50: '#5f6390',
    500: '#142a63',
    950: '#000000',
  },
}
SCSS
$custom: #142a63;
$custom-light: #5f6390;
$custom-dark: #000000;
JSON
{
  "hex": "#142a63",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 99
  },
  "hsl": {
    "h": 223.291,
    "s": 66.387,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30527,
    "c": 0.10484,
    "h": 264.9
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#142A63
secondary
#9A7F38
accent
#BA3EE9
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #142A63

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

Preview Lab → · Contrast checker → · Palette generator →

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