#142257#142257

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

Color values

HEX#142257
RGBrgb(20, 34, 87)
HSLhsl(227, 63%, 21%)
HSVhsv(227, 77%, 34%)
CMYKcmyk(77%, 60.9%, 0%, 65.9%)
CIE-LABlab(15.39, 14.99, -33.84)
CIE-LCHlch(15.39, 37.02, 293.89°)
OKLaboklab(27.62% -0.0032 -0.0975)
OKLCHoklch(27.62% 0.098 268.1)
XYZxyz(2.5802, 1.9806, 9.2613)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142257 #574914
analogous
#144357 #142257 #271457
triadic
#142257 #571422 #225714
tetradic
#142257 #571443 #574914 #145727
square
#142257 #571443 #574914 #145727
split-complementary
#142257 #572714 #435714
monochromatic
#060A19 #090F25 #142257 #1F3589 #2B49BB

Accessibility & contrast

On white

15.04
#142257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#142257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142257
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142257#FFFFFF#000000##FFFFFF
##1422571.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #142257;
/* rgb */ color: rgb(20, 34, 87);
/* oklch */ color: oklch(27.6% 0.098 268.1);
Tailwind
colors: {
  custom: {
    50: '#5c5c87',
    500: '#142257',
    950: '#000000',
  },
}
SCSS
$custom: #142257;
$custom-light: #5c5c87;
$custom-dark: #000000;
JSON
{
  "hex": "#142257",
  "rgb": {
    "r": 20,
    "g": 34,
    "b": 87
  },
  "hsl": {
    "h": 227.463,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27619,
    "c": 0.09756,
    "h": 268.1
  },
  "luminance": 0.01981
}

Semantic roles & 50–950 ramp

primary
#142257
secondary
#8F7D38
accent
#C442E6
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #142257

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

Preview Lab → · Contrast checker → · Palette generator →

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