#142A6C#142A6C

#142A6C is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.3% C 0.118 H 265.7°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#142A6C
RGBrgb(20, 42, 108)
HSLhsl(225, 69%, 25%)
HSVhsv(225, 81%, 42%)
CMYKcmyk(81.5%, 61.1%, 0%, 57.6%)
CIE-LABlab(19.59, 17.92, -40.87)
CIE-LCHlch(19.59, 44.63, 293.67°)
OKLaboklab(31.34% -0.0088 -0.118)
OKLCHoklch(31.34% 0.118 265.7)
XYZxyz(3.8223, 2.8869, 14.5402)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A6C #6C5614
analogous
#14566C #142A6C #2A146C
triadic
#142A6C #6C142A #2A6C14
tetradic
#142A6C #6C1456 #6C5614 #146C2A
square
#142A6C #6C1456 #6C5614 #146C2A
split-complementary
#142A6C #6C2A14 #566C14
monochromatic
#050A1A #0A1638 #142A6C #1E3EA0 #2752D3

Accessibility & contrast

On white

13.31
#142A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#142A6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A6C
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A6C#FFFFFF#000000##FFFFFF
##142A6C1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#003B46
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #142a6c;
/* rgb */ color: rgb(20, 42, 108);
/* oklch */ color: oklch(31.3% 0.118 265.7);
Tailwind
colors: {
  custom: {
    50: '#616397',
    500: '#142a6c',
    950: '#000000',
  },
}
SCSS
$custom: #142a6c;
$custom-light: #616397;
$custom-dark: #000000;
JSON
{
  "hex": "#142a6c",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 108
  },
  "hsl": {
    "h": 225,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31341,
    "c": 0.11837,
    "h": 265.7
  },
  "luminance": 0.02887
}

Semantic roles & 50–950 ramp

primary
#142A6C
secondary
#A38839
accent
#C03CEC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #142A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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