#142875#142875

#142875 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.134 H 266.9°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#142875
RGBrgb(20, 40, 117)
HSLhsl(228, 71%, 27%)
HSVhsv(228, 83%, 46%)
CMYKcmyk(82.9%, 65.8%, 0%, 54.1%)
CIE-LABlab(19.84, 23.07, -46.26)
CIE-LCHlch(19.84, 51.69, 296.51°)
OKLaboklab(31.79% -0.0073 -0.1338)
OKLCHoklch(31.79% 0.134 266.9)
XYZxyz(4.2570, 2.9502, 17.1712)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142875 #756114
analogous
#145975 #142875 #311475
triadic
#142875 #751428 #287514
tetradic
#142875 #751459 #756114 #147531
square
#142875 #751459 #756114 #147531
split-complementary
#142875 #753114 #597514
monochromatic
#04091A #0B1641 #142875 #1D3AA9 #294EDA

Accessibility & contrast

On white

13.21
#142875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#142875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142875
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142875#FFFFFF#000000##FFFFFF
##1428751.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #142875;
/* rgb */ color: rgb(20, 40, 117);
/* oklch */ color: oklch(31.8% 0.134 266.9);
Tailwind
colors: {
  custom: {
    50: '#64619e',
    500: '#142875',
    950: '#000000',
  },
}
SCSS
$custom: #142875;
$custom-light: #64619e;
$custom-dark: #000000;
JSON
{
  "hex": "#142875",
  "rgb": {
    "r": 20,
    "g": 40,
    "b": 117
  },
  "hsl": {
    "h": 227.629,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31788,
    "c": 0.13405,
    "h": 266.9
  },
  "luminance": 0.02951
}

Semantic roles & 50–950 ramp

primary
#142875
secondary
#AB943A
accent
#C93AEE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #142875

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

Preview Lab → · Contrast checker → · Palette generator →

#142875 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva