#20298E#20298E

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

Color values

HEX#20298E
RGBrgb(32, 41, 142)
HSLhsl(235, 63%, 34%)
HSVhsv(235, 77%, 56%)
CMYKcmyk(77.5%, 71.1%, 0%, 44.3%)
CIE-LABlab(23.15, 33.26, -56.57)
CIE-LCHlch(23.15, 65.62, 300.45°)
OKLaboklab(35.12% 0.0022 -0.1637)
OKLCHoklch(35.12% 0.164 270.8)
XYZxyz(6.2694, 3.8453, 25.9977)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20298E #8E8520
analogous
#20608E #20298E #4E208E
triadic
#20298E #8E2029 #298E20
tetradic
#20298E #8E2060 #8E8520 #208E4E
square
#20298E #8E2060 #8E8520 #208E4E
split-complementary
#20298E #8E4E20 #608E20
monochromatic
#090C2A #151B5C #20298E #2B37C0 #515CD8

Accessibility & contrast

On white

11.87
#20298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#20298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20298E
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20298E#FFFFFF#000000##FFFFFF
##20298E1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #20298e;
/* rgb */ color: rgb(32, 41, 142);
/* oklch */ color: oklch(35.1% 0.164 270.8);
Tailwind
colors: {
  custom: {
    50: '#6f63b0',
    500: '#20298e',
    950: '#000000',
  },
}
SCSS
$custom: #20298e;
$custom-light: #6f63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20298e",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 235.091,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35118,
    "c": 0.16375,
    "h": 270.8
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#20298E
secondary
#BBB24F
accent
#D942E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #20298E

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

Preview Lab → · Contrast checker → · Palette generator →

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