#142255#142255

#142255 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.094 H 268.0°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#142255
RGBrgb(20, 34, 85)
HSLhsl(227, 62%, 21%)
HSVhsv(227, 76%, 33%)
CMYKcmyk(76.5%, 60%, 0%, 66.7%)
CIE-LABlab(15.21, 14.15, -32.77)
CIE-LCHlch(15.21, 35.70, 293.35°)
OKLaboklab(27.44% -0.0033 -0.0944)
OKLCHoklch(27.44% 0.094 268)
XYZxyz(2.4996, 1.9484, 8.8369)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142255 #554714
analogous
#144255 #142255 #261455
triadic
#142255 #551422 #225514
tetradic
#142255 #551442 #554714 #145526
square
#142255 #551442 #554714 #145526
split-complementary
#142255 #552614 #425514
monochromatic
#060A19 #080E23 #142255 #203687 #2B4AB8

Accessibility & contrast

On white

15.11
#142255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#142255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142255
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142255#FFFFFF#000000##FFFFFF
##1422551.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #142255;
/* rgb */ color: rgb(20, 34, 85);
/* oklch */ color: oklch(27.4% 0.094 268.0);
Tailwind
colors: {
  custom: {
    50: '#5c5c85',
    500: '#142255',
    950: '#000000',
  },
}
SCSS
$custom: #142255;
$custom-light: #5c5c85;
$custom-dark: #000000;
JSON
{
  "hex": "#142255",
  "rgb": {
    "r": 20,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 227.077,
    "s": 61.905,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27437,
    "c": 0.09443,
    "h": 268
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#142255
secondary
#8D7B38
accent
#C243E5
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #142255

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

Preview Lab → · Contrast checker → · Palette generator →

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