#142274#142274

#142274 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.140 H 268.4°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#142274
RGBrgb(20, 34, 116)
HSLhsl(231, 71%, 27%)
HSVhsv(231, 83%, 45%)
CMYKcmyk(82.8%, 70.7%, 0%, 54.5%)
CIE-LABlab(18.16, 26.86, -48.38)
CIE-LCHlch(18.16, 55.33, 299.04°)
OKLaboklab(30.52% -0.0038 -0.1401)
OKLCHoklch(30.52% 0.14 268.4)
XYZxyz(4.0118, 2.5533, 16.8010)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142274 #746614
analogous
#145274 #142274 #361474
triadic
#142274 #741422 #227414
tetradic
#142274 #741452 #746614 #147436
square
#142274 #741452 #746614 #147436
split-complementary
#142274 #743614 #527414
monochromatic
#05081A #0B1340 #142274 #1D31A8 #2842DA

Accessibility & contrast

On white

13.90
#142274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#142274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142274
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142274#FFFFFF#000000##FFFFFF
##1422741.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #142274;
/* rgb */ color: rgb(20, 34, 116);
/* oklch */ color: oklch(30.5% 0.140 268.4);
Tailwind
colors: {
  custom: {
    50: '#645d9d',
    500: '#142274',
    950: '#000000',
  },
}
SCSS
$custom: #142274;
$custom-light: #645d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#142274",
  "rgb": {
    "r": 20,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 231.25,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30522,
    "c": 0.14015,
    "h": 268.4
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#142274
secondary
#AA9A3A
accent
#D33AED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #142274

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

Preview Lab → · Contrast checker → · Palette generator →

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