#142270#142270

#142270 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.1% C 0.135 H 268.5°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#142270
RGBrgb(20, 34, 112)
HSLhsl(231, 70%, 26%)
HSVhsv(231, 82%, 44%)
CMYKcmyk(82.1%, 69.6%, 0%, 56.1%)
CIE-LABlab(17.75, 25.27, -46.47)
CIE-LCHlch(17.75, 52.90, 298.54°)
OKLaboklab(30.1% -0.0035 -0.1345)
OKLCHoklch(30.1% 0.135 268.5)
XYZxyz(3.7841, 2.4622, 15.6019)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142270 #706214
analogous
#145070 #142270 #341470
triadic
#142270 #701422 #227014
tetradic
#142270 #701450 #706214 #147034
square
#142270 #701450 #706214 #147034
split-complementary
#142270 #703414 #507014
monochromatic
#05081A #0B123C #142270 #1D32A4 #2742D8

Accessibility & contrast

On white

14.07
#142270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#142270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142270
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142270#FFFFFF#000000##FFFFFF
##1422701.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #142270;
/* rgb */ color: rgb(20, 34, 112);
/* oklch */ color: oklch(30.1% 0.135 268.5);
Tailwind
colors: {
  custom: {
    50: '#635d9a',
    500: '#142270',
    950: '#000000',
  },
}
SCSS
$custom: #142270;
$custom-light: #635d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#142270",
  "rgb": {
    "r": 20,
    "g": 34,
    "b": 112
  },
  "hsl": {
    "h": 230.87,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30097,
    "c": 0.13459,
    "h": 268.5
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

primary
#142270
secondary
#A69639
accent
#D23BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #142270

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

Preview Lab → · Contrast checker → · Palette generator →

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