#142256#142256

#142256 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.5% C 0.096 H 268.1°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#142256
RGBrgb(20, 34, 86)
HSLhsl(227, 62%, 21%)
HSVhsv(227, 77%, 34%)
CMYKcmyk(76.7%, 60.5%, 0%, 66.3%)
CIE-LABlab(15.30, 14.57, -33.31)
CIE-LCHlch(15.30, 36.36, 293.62°)
OKLaboklab(27.53% -0.0032 -0.0959)
OKLCHoklch(27.53% 0.096 268.1)
XYZxyz(2.5397, 1.9644, 9.0476)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142256 #564814
analogous
#144356 #142256 #271456
triadic
#142256 #561422 #225614
tetradic
#142256 #561443 #564814 #145627
square
#142256 #561443 #564814 #145627
split-complementary
#142256 #562714 #435614
monochromatic
#060A19 #080E24 #142256 #203688 #2B49B9

Accessibility & contrast

On white

15.08
#142256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142256
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142256#FFFFFF#000000##FFFFFF
##1422561.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #142256;
/* rgb */ color: rgb(20, 34, 86);
/* oklch */ color: oklch(27.5% 0.096 268.1);
Tailwind
colors: {
  custom: {
    50: '#5c5c86',
    500: '#142256',
    950: '#000000',
  },
}
SCSS
$custom: #142256;
$custom-light: #5c5c86;
$custom-dark: #000000;
JSON
{
  "hex": "#142256",
  "rgb": {
    "r": 20,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 227.273,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27528,
    "c": 0.09599,
    "h": 268.1
  },
  "luminance": 0.01965
}

Semantic roles & 50–950 ramp

primary
#142256
secondary
#8E7C38
accent
#C342E5
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #142256

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

Preview Lab → · Contrast checker → · Palette generator →

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