#142D7B#142D7B

#142D7B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.4% C 0.136 H 265.6°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#142D7B
RGBrgb(20, 45, 123)
HSLhsl(225, 72%, 28%)
HSVhsv(225, 84%, 48%)
CMYKcmyk(83.7%, 63.4%, 0%, 51.8%)
CIE-LABlab(21.78, 21.98, -46.91)
CIE-LCHlch(21.78, 51.81, 295.10°)
OKLaboklab(33.4% -0.0104 -0.1357)
OKLCHoklch(33.4% 0.136 265.6)
XYZxyz(4.8008, 3.4550, 19.1489)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142D7B #7B6214
analogous
#14607B #142D7B #2E147B
triadic
#142D7B #7B142D #2D7B14
tetradic
#142D7B #7B1460 #7B6214 #147B2E
square
#142D7B #7B1460 #7B6214 #147B2E
split-complementary
#142D7B #7B2E14 #607B14
monochromatic
#040A1A #0B1A46 #142D7B #1D40B0 #2D57DD

Accessibility & contrast

On white

12.42
#142D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#142D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142D7B
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142D7B#FFFFFF#000000##FFFFFF
##142D7B1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #142d7b;
/* rgb */ color: rgb(20, 45, 123);
/* oklch */ color: oklch(33.4% 0.136 265.6);
Tailwind
colors: {
  custom: {
    50: '#6565a2',
    500: '#142d7b',
    950: '#000000',
  },
}
SCSS
$custom: #142d7b;
$custom-light: #6565a2;
$custom-dark: #000000;
JSON
{
  "hex": "#142d7b",
  "rgb": {
    "r": 20,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 225.437,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33397,
    "c": 0.13611,
    "h": 265.6
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#142D7B
secondary
#B1943A
accent
#C339EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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