#142B7E#142B7E

#142B7E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.143 H 266.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#142B7E
RGBrgb(20, 43, 126)
HSLhsl(227, 73%, 29%)
HSVhsv(227, 84%, 49%)
CMYKcmyk(84.1%, 65.9%, 0%, 50.6%)
CIE-LABlab(21.51, 24.61, -49.25)
CIE-LCHlch(21.51, 55.06, 296.55°)
OKLaboklab(33.29% -0.0093 -0.1426)
OKLCHoklch(33.29% 0.143 266.3)
XYZxyz(4.9169, 3.3822, 20.1283)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142B7E #7E6714
analogous
#14607E #142B7E #32147E
triadic
#142B7E #7E142B #2B7E14
tetradic
#142B7E #7E1460 #7E6714 #147E32
square
#142B7E #7E1460 #7E6714 #147E32
split-complementary
#142B7E #7E3214 #607E14
monochromatic
#04091A #0C1949 #142B7E #1C3DB3 #2E55DE

Accessibility & contrast

On white

12.53
#142B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#142B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142B7E
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142B7E#FFFFFF#000000##FFFFFF
##142B7E1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #142b7e;
/* rgb */ color: rgb(20, 43, 126);
/* oklch */ color: oklch(33.3% 0.143 266.3);
Tailwind
colors: {
  custom: {
    50: '#6664a4',
    500: '#142b7e',
    950: '#000000',
  },
}
SCSS
$custom: #142b7e;
$custom-light: #6664a4;
$custom-dark: #000000;
JSON
{
  "hex": "#142b7e",
  "rgb": {
    "r": 20,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 226.981,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33286,
    "c": 0.14289,
    "h": 266.3
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#142B7E
secondary
#B3993A
accent
#C838EF
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #142B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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