#20255D#20255D

#20255D is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.6% C 0.099 H 274.8°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#20255D
RGBrgb(32, 37, 93)
HSLhsl(235, 49%, 25%)
HSVhsv(235, 66%, 36%)
CMYKcmyk(65.6%, 60.2%, 0%, 63.5%)
CIE-LABlab(17.55, 17.36, -34.30)
CIE-LCHlch(17.55, 38.44, 296.85°)
OKLaboklab(29.61% 0.0082 -0.0985)
OKLCHoklch(29.61% 0.099 274.8)
XYZxyz(3.2324, 2.4203, 10.6506)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20255D #5D5820
analogous
#20445D #20255D #3A205D
triadic
#20255D #5D2025 #255D20
tetradic
#20255D #5D2044 #5D5820 #205D3A
square
#20255D #5D2044 #5D5820 #205D3A
split-complementary
#20255D #5D3A20 #445D20
monochromatic
#080917 #10132F #20255D #30378B #3F49B8

Accessibility & contrast

On white

14.15
#20255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#20255D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20255D
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20255D#FFFFFF#000000##FFFFFF
##20255D1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#00323D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20255d;
/* rgb */ color: rgb(32, 37, 93);
/* oklch */ color: oklch(29.6% 0.099 274.8);
Tailwind
colors: {
  custom: {
    50: '#635f8b',
    500: '#20255d',
    950: '#000000',
  },
}
SCSS
$custom: #20255d;
$custom-light: #635f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#20255d",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 235.082,
    "s": 48.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29609,
    "c": 0.09883,
    "h": 274.8
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#20255D
secondary
#918B47
accent
#CD4FD8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #20255D

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

Preview Lab → · Contrast checker → · Palette generator →

#20255D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva