#20297F#20297F

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

Color values

HEX#20297F
RGBrgb(32, 41, 127)
HSLhsl(234, 60%, 31%)
HSVhsv(234, 75%, 50%)
CMYKcmyk(74.8%, 67.7%, 0%, 50.2%)
CIE-LABlab(21.67, 27.66, -49.61)
CIE-LCHlch(21.67, 56.80, 299.14°)
OKLaboklab(33.59% 0.0036 -0.1434)
OKLCHoklch(33.59% 0.143 271.5)
XYZxyz(5.2181, 3.4247, 20.4606)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20297F #7F7620
analogous
#20587F #20297F #46207F
triadic
#20297F #7F2029 #297F20
tetradic
#20297F #7F2058 #7F7620 #207F46
square
#20297F #7F2058 #7F7620 #207F46
split-complementary
#20297F #7F4620 #587F20
monochromatic
#07091D #14194E #20297F #2C39B0 #4855D1

Accessibility & contrast

On white

12.46
#20297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#20297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20297F
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20297F#FFFFFF#000000##FFFFFF
##20297F1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #20297f;
/* rgb */ color: rgb(32, 41, 127);
/* oklch */ color: oklch(33.6% 0.143 271.5);
Tailwind
colors: {
  custom: {
    50: '#6b63a5',
    500: '#20297f',
    950: '#000000',
  },
}
SCSS
$custom: #20297f;
$custom-light: #6b63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20297f",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 234.316,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3359,
    "c": 0.14344,
    "h": 271.5
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

primary
#20297F
secondary
#B2A849
accent
#D445E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #20297F

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

Preview Lab → · Contrast checker → · Palette generator →

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