#20298A#20298A

#20298A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.158 H 270.9°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#20298A
RGBrgb(32, 41, 138)
HSLhsl(235, 62%, 33%)
HSVhsv(235, 77%, 54%)
CMYKcmyk(76.8%, 70.3%, 0%, 45.9%)
CIE-LABlab(22.75, 31.78, -54.75)
CIE-LCHlch(22.75, 63.30, 300.14°)
OKLaboklab(34.7% 0.0026 -0.1584)
OKLCHoklch(34.7% 0.158 270.9)
XYZxyz(5.9745, 3.7273, 24.4444)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20298A #8A8120
analogous
#205E8A #20298A #4C208A
triadic
#20298A #8A2029 #298A20
tetradic
#20298A #8A205E #8A8120 #208A4C
square
#20298A #8A205E #8A8120 #208A4C
split-complementary
#20298A #8A4C20 #5E8A20
monochromatic
#090B27 #141A58 #20298A #2C38BC #4E5AD6

Accessibility & contrast

On white

12.03
#20298A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20298A
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20298A#FFFFFF#000000##FFFFFF
##20298A1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #20298a;
/* rgb */ color: rgb(32, 41, 138);
/* oklch */ color: oklch(34.7% 0.158 270.9);
Tailwind
colors: {
  custom: {
    50: '#6e63ad',
    500: '#20298a',
    950: '#000000',
  },
}
SCSS
$custom: #20298a;
$custom-light: #6e63ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20298a",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 138
  },
  "hsl": {
    "h": 234.906,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34703,
    "c": 0.15843,
    "h": 270.9
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#20298A
secondary
#B9B04D
accent
#D842E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #20298A

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

Preview Lab → · Contrast checker → · Palette generator →

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