#20255E#20255E

#20255E is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.7% C 0.100 H 274.7°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#20255E
RGBrgb(32, 37, 94)
HSLhsl(235, 49%, 25%)
HSVhsv(235, 66%, 37%)
CMYKcmyk(66%, 60.6%, 0%, 63.1%)
CIE-LABlab(17.64, 17.75, -34.83)
CIE-LCHlch(17.64, 39.09, 297.00°)
OKLaboklab(29.7% 0.0083 -0.1)
OKLCHoklch(29.7% 0.1 274.7)
XYZxyz(3.2769, 2.4381, 10.8854)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20255E #5E5920
analogous
#20445E #20255E #3A205E
triadic
#20255E #5E2025 #255E20
tetradic
#20255E #5E2044 #5E5920 #205E3A
square
#20255E #5E2044 #5E5920 #205E3A
split-complementary
#20255E #5E3A20 #445E20
monochromatic
#080917 #101330 #20255E #30378C #3F49B9

Accessibility & contrast

On white

14.12
#20255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#20255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20255E
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20255E#FFFFFF#000000##FFFFFF
##20255E1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20255e;
/* rgb */ color: rgb(32, 37, 94);
/* oklch */ color: oklch(29.7% 0.100 274.7);
Tailwind
colors: {
  custom: {
    50: '#635f8c',
    500: '#20255e',
    950: '#000000',
  },
}
SCSS
$custom: #20255e;
$custom-light: #635f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#20255e",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 235.161,
    "s": 49.206,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29696,
    "c": 0.10039,
    "h": 274.7
  },
  "luminance": 0.02438
}

Semantic roles & 50–950 ramp

primary
#20255E
secondary
#928C47
accent
#CE4FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #20255E

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

Preview Lab → · Contrast checker → · Palette generator →

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