#20297E#20297E

#20297E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.142 H 271.5°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#20297E
RGBrgb(32, 41, 126)
HSLhsl(234, 59%, 31%)
HSVhsv(234, 75%, 49%)
CMYKcmyk(74.6%, 67.5%, 0%, 50.6%)
CIE-LABlab(21.58, 27.28, -49.13)
CIE-LCHlch(21.58, 56.20, 299.04°)
OKLaboklab(33.49% 0.0037 -0.142)
OKLCHoklch(33.49% 0.142 271.5)
XYZxyz(5.1532, 3.3988, 20.1191)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20297E #7E7520
analogous
#20587E #20297E #46207E
triadic
#20297E #7E2029 #297E20
tetradic
#20297E #7E2058 #7E7520 #207E46
square
#20297E #7E2058 #7E7520 #207E46
split-complementary
#20297E #7E4620 #587E20
monochromatic
#07091C #14194D #20297E #2C39AF #4855D0

Accessibility & contrast

On white

12.50
#20297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#20297E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20297E
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20297E#FFFFFF#000000##FFFFFF
##20297E1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #20297e;
/* rgb */ color: rgb(32, 41, 126);
/* oklch */ color: oklch(33.5% 0.142 271.5);
Tailwind
colors: {
  custom: {
    50: '#6a63a4',
    500: '#20297e',
    950: '#000000',
  },
}
SCSS
$custom: #20297e;
$custom-light: #6a63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20297e",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 234.255,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33491,
    "c": 0.14204,
    "h": 271.5
  },
  "luminance": 0.03399
}

Semantic roles & 50–950 ramp

primary
#20297E
secondary
#B1A749
accent
#D445E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #20297E

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

Preview Lab → · Contrast checker → · Palette generator →

#20297E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva