#20298F#20298F

#20298F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.165 H 270.7°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#20298F
RGBrgb(32, 41, 143)
HSLhsl(235, 63%, 34%)
HSVhsv(235, 78%, 56%)
CMYKcmyk(77.6%, 71.3%, 0%, 43.9%)
CIE-LABlab(23.26, 33.63, -57.02)
CIE-LCHlch(23.26, 66.20, 300.53°)
OKLaboklab(35.22% 0.002 -0.1651)
OKLCHoklch(35.22% 0.165 270.7)
XYZxyz(6.3448, 3.8754, 26.3949)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20298F #8F8620
analogous
#20618F #20298F #4F208F
triadic
#20298F #8F2029 #298F20
tetradic
#20298F #8F2061 #8F8620 #208F4F
square
#20298F #8F2061 #8F8620 #208F4F
split-complementary
#20298F #8F4F20 #618F20
monochromatic
#0A0C2B #151B5D #20298F #2B37C1 #515CD8

Accessibility & contrast

On white

11.83
#20298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#20298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20298F
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20298F#FFFFFF#000000##FFFFFF
##20298F1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #20298f;
/* rgb */ color: rgb(32, 41, 143);
/* oklch */ color: oklch(35.2% 0.165 270.7);
Tailwind
colors: {
  custom: {
    50: '#6f63b1',
    500: '#20298f',
    950: '#000000',
  },
}
SCSS
$custom: #20298f;
$custom-light: #6f63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#20298f",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 235.135,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35222,
    "c": 0.16507,
    "h": 270.7
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#20298F
secondary
#BBB34F
accent
#D941E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #20298F

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

Preview Lab → · Contrast checker → · Palette generator →

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