#20298B#20298B

#20298B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.160 H 270.9°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#20298B
RGBrgb(32, 41, 139)
HSLhsl(235, 63%, 34%)
HSVhsv(235, 77%, 55%)
CMYKcmyk(77%, 70.5%, 0%, 45.5%)
CIE-LABlab(22.85, 32.15, -55.20)
CIE-LCHlch(22.85, 63.89, 300.22°)
OKLaboklab(34.81% 0.0025 -0.1597)
OKLCHoklch(34.81% 0.16 270.9)
XYZxyz(6.0472, 3.7564, 24.8274)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20298B #8B8220
analogous
#205E8B #20298B #4C208B
triadic
#20298B #8B2029 #298B20
tetradic
#20298B #8B205E #8B8220 #208B4C
square
#20298B #8B205E #8B8220 #208B4C
split-complementary
#20298B #8B4C20 #5E8B20
monochromatic
#090C28 #151A59 #20298B #2B38BD #4F5AD6

Accessibility & contrast

On white

11.99
#20298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#20298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20298B
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20298B#FFFFFF#000000##FFFFFF
##20298B1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #20298b;
/* rgb */ color: rgb(32, 41, 139);
/* oklch */ color: oklch(34.8% 0.160 270.9);
Tailwind
colors: {
  custom: {
    50: '#6e63ae',
    500: '#20298b',
    950: '#000000',
  },
}
SCSS
$custom: #20298b;
$custom-light: #6e63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20298b",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 234.953,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34806,
    "c": 0.15977,
    "h": 270.9
  },
  "luminance": 0.03757
}

Semantic roles & 50–950 ramp

primary
#20298B
secondary
#BAB04D
accent
#D842E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #20298B

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

Preview Lab → · Contrast checker → · Palette generator →

#20298B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva