#20298C#20298C

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

Color values

HEX#20298C
RGBrgb(32, 41, 140)
HSLhsl(235, 63%, 34%)
HSVhsv(235, 77%, 55%)
CMYKcmyk(77.1%, 70.7%, 0%, 45.1%)
CIE-LABlab(22.95, 32.52, -55.66)
CIE-LCHlch(22.95, 64.47, 300.30°)
OKLaboklab(34.91% 0.0024 -0.1611)
OKLCHoklch(34.91% 0.161 270.8)
XYZxyz(6.1206, 3.7857, 25.2140)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20298C #8C8320
analogous
#205F8C #20298C #4D208C
triadic
#20298C #8C2029 #298C20
tetradic
#20298C #8C205F #8C8320 #208C4D
square
#20298C #8C205F #8C8320 #208C4D
split-complementary
#20298C #8C4D20 #5F8C20
monochromatic
#090C28 #151A5A #20298C #2B38BE #505BD7

Accessibility & contrast

On white

11.95
#20298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20298C
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20298C#FFFFFF#000000##FFFFFF
##20298C1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #20298c;
/* rgb */ color: rgb(32, 41, 140);
/* oklch */ color: oklch(34.9% 0.161 270.8);
Tailwind
colors: {
  custom: {
    50: '#6e63af',
    500: '#20298c',
    950: '#000000',
  },
}
SCSS
$custom: #20298c;
$custom-light: #6e63af;
$custom-dark: #000000;
JSON
{
  "hex": "#20298c",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 235,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3491,
    "c": 0.1611,
    "h": 270.8
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#20298C
secondary
#BAB14E
accent
#D842E6
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #20298C

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

Preview Lab → · Contrast checker → · Palette generator →

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