#20297C#20297C

#20297C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.139 H 271.6°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#20297C
RGBrgb(32, 41, 124)
HSLhsl(234, 59%, 31%)
HSVhsv(234, 74%, 49%)
CMYKcmyk(74.2%, 66.9%, 0%, 51.4%)
CIE-LABlab(21.39, 26.52, -48.17)
CIE-LCHlch(21.39, 54.99, 298.83°)
OKLaboklab(33.3% 0.0039 -0.1392)
OKLCHoklch(33.3% 0.139 271.6)
XYZxyz(5.0255, 3.3477, 19.4462)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20297C #7C7320
analogous
#20577C #20297C #45207C
triadic
#20297C #7C2029 #297C20
tetradic
#20297C #7C2057 #7C7320 #207C45
square
#20297C #7C2057 #7C7320 #207C45
split-complementary
#20297C #7C4520 #577C20
monochromatic
#07091B #13194B #20297C #2D39AD #4754CF

Accessibility & contrast

On white

12.58
#20297C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20297C
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20297C#FFFFFF#000000##FFFFFF
##20297C1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20297c;
/* rgb */ color: rgb(32, 41, 124);
/* oklch */ color: oklch(33.3% 0.139 271.6);
Tailwind
colors: {
  custom: {
    50: '#6a62a3',
    500: '#20297c',
    950: '#000000',
  },
}
SCSS
$custom: #20297c;
$custom-light: #6a62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20297c",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 124
  },
  "hsl": {
    "h": 234.13,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33295,
    "c": 0.13923,
    "h": 271.6
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#20297C
secondary
#AFA549
accent
#D346E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #20297C

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

Preview Lab → · Contrast checker → · Palette generator →

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