#202870#202870

#202870 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.123 H 272.4°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#202870
RGBrgb(32, 40, 112)
HSLhsl(234, 56%, 28%)
HSVhsv(234, 71%, 44%)
CMYKcmyk(71.4%, 64.3%, 0%, 56.1%)
CIE-LABlab(20.02, 22.60, -42.72)
CIE-LCHlch(20.02, 48.33, 297.88°)
OKLaboklab(31.95% 0.0053 -0.1232)
OKLCHoklch(31.95% 0.123 272.4)
XYZxyz(4.2781, 2.9941, 15.6786)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202870 #706820
analogous
#205070 #202870 #402070
triadic
#202870 #702028 #287020
tetradic
#202870 #702050 #706820 #207040
square
#202870 #702050 #706820 #207040
split-complementary
#202870 #704020 #507020
monochromatic
#070818 #121740 #202870 #2E39A0 #424FC9

Accessibility & contrast

On white

13.13
#202870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#202870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202870
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202870#FFFFFF#000000##FFFFFF
##2028701.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #202870;
/* rgb */ color: rgb(32, 40, 112);
/* oklch */ color: oklch(31.9% 0.123 272.4);
Tailwind
colors: {
  custom: {
    50: '#67619a',
    500: '#202870',
    950: '#000000',
  },
}
SCSS
$custom: #202870;
$custom-light: #67619a;
$custom-dark: #000000;
JSON
{
  "hex": "#202870",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 234,
    "s": 55.556,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3195,
    "c": 0.12333,
    "h": 272.4
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#202870
secondary
#A49B48
accent
#D049DF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #202870

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

Preview Lab → · Contrast checker → · Palette generator →

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