#20297D#20297D

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

Color values

HEX#20297D
RGBrgb(32, 41, 125)
HSLhsl(234, 59%, 31%)
HSVhsv(234, 74%, 49%)
CMYKcmyk(74.4%, 67.2%, 0%, 51%)
CIE-LABlab(21.48, 26.90, -48.65)
CIE-LCHlch(21.48, 55.59, 298.94°)
OKLaboklab(33.39% 0.0038 -0.1406)
OKLCHoklch(33.39% 0.141 271.5)
XYZxyz(5.0890, 3.3731, 19.7809)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20297D #7D7420
analogous
#20577D #20297D #45207D
triadic
#20297D #7D2029 #297D20
tetradic
#20297D #7D2057 #7D7420 #207D45
square
#20297D #7D2057 #7D7420 #207D45
split-complementary
#20297D #7D4520 #577D20
monochromatic
#07091C #14194C #20297D #2C39AE #4755D0

Accessibility & contrast

On white

12.54
#20297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#20297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20297D
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20297D#FFFFFF#000000##FFFFFF
##20297D1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20297d;
/* rgb */ color: rgb(32, 41, 125);
/* oklch */ color: oklch(33.4% 0.141 271.5);
Tailwind
colors: {
  custom: {
    50: '#6a62a3',
    500: '#20297d',
    950: '#000000',
  },
}
SCSS
$custom: #20297d;
$custom-light: #6a62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20297d",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 234.194,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33393,
    "c": 0.14064,
    "h": 271.5
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#20297D
secondary
#B0A649
accent
#D345E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #20297D

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

Preview Lab → · Contrast checker → · Palette generator →

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