#20258C#20258C

#20258C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.166 H 271.6°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#20258C
RGBrgb(32, 37, 140)
HSLhsl(237, 63%, 34%)
HSVhsv(237, 77%, 55%)
CMYKcmyk(77.1%, 73.6%, 0%, 45.1%)
CIE-LABlab(22.03, 35.06, -57.18)
CIE-LCHlch(22.03, 67.07, 301.51°)
OKLaboklab(34.25% 0.0045 -0.1655)
OKLCHoklch(34.25% 0.166 271.6)
XYZxyz(5.9893, 3.5230, 25.1702)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20258C #8C8720
analogous
#205B8C #20258C #51208C
triadic
#20258C #8C2025 #258C20
tetradic
#20258C #8C205B #8C8720 #208C51
square
#20258C #8C205B #8C8720 #208C51
split-complementary
#20258C #8C5120 #5B8C20
monochromatic
#090B28 #15185A #20258C #2B32BE #5056D7

Accessibility & contrast

On white

12.32
#20258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#20258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20258C
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20258C#FFFFFF#000000##FFFFFF
##20258C1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #20258c;
/* rgb */ color: rgb(32, 37, 140);
/* oklch */ color: oklch(34.2% 0.166 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f60af',
    500: '#20258c',
    950: '#000000',
  },
}
SCSS
$custom: #20258c;
$custom-light: #6f60af;
$custom-dark: #000000;
JSON
{
  "hex": "#20258c",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 237.222,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34246,
    "c": 0.16557,
    "h": 271.6
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#20258C
secondary
#BAB54E
accent
#DE42E6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #20258C

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

Preview Lab → · Contrast checker → · Palette generator →

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