#20298D#20298D

#20298D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.162 H 270.8°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#20298D
RGBrgb(32, 41, 141)
HSLhsl(235, 63%, 34%)
HSVhsv(235, 77%, 55%)
CMYKcmyk(77.3%, 70.9%, 0%, 44.7%)
CIE-LABlab(23.05, 32.89, -56.12)
CIE-LCHlch(23.05, 65.05, 300.38°)
OKLaboklab(35.01% 0.0023 -0.1624)
OKLCHoklch(35.01% 0.162 270.8)
XYZxyz(6.1947, 3.8154, 25.6041)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20298D #8D8420
analogous
#20608D #20298D #4E208D
triadic
#20298D #8D2029 #298D20
tetradic
#20298D #8D2060 #8D8420 #208D4E
square
#20298D #8D2060 #8D8420 #208D4E
split-complementary
#20298D #8D4E20 #608D20
monochromatic
#090C29 #151A5B #20298D #2B38BF #505BD7

Accessibility & contrast

On white

11.91
#20298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#20298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20298D
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20298D#FFFFFF#000000##FFFFFF
##20298D1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #20298d;
/* rgb */ color: rgb(32, 41, 141);
/* oklch */ color: oklch(35.0% 0.162 270.8);
Tailwind
colors: {
  custom: {
    50: '#6e63af',
    500: '#20298d',
    950: '#000000',
  },
}
SCSS
$custom: #20298d;
$custom-light: #6e63af;
$custom-dark: #000000;
JSON
{
  "hex": "#20298d",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 235.046,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35014,
    "c": 0.16243,
    "h": 270.8
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#20298D
secondary
#BAB24E
accent
#D842E6
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #20298D

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

Preview Lab → · Contrast checker → · Palette generator →

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