#20255B#20255B

#20255B is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.096 H 274.9°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#20255B
RGBrgb(32, 37, 91)
HSLhsl(235, 48%, 24%)
HSVhsv(235, 65%, 36%)
CMYKcmyk(64.8%, 59.3%, 0%, 64.3%)
CIE-LABlab(17.39, 16.59, -33.23)
CIE-LCHlch(17.39, 37.14, 296.53°)
OKLaboklab(29.44% 0.0082 -0.0953)
OKLCHoklch(29.44% 0.096 274.9)
XYZxyz(3.1449, 2.3853, 10.1902)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20255B #5B5620
analogous
#20435B #20255B #39205B
triadic
#20255B #5B2025 #255B20
tetradic
#20255B #5B2043 #5B5620 #205B39
square
#20255B #5B2043 #5B5620 #205B39
split-complementary
#20255B #5B3920 #435B20
monochromatic
#080917 #10132E #20255B #303788 #404AB6

Accessibility & contrast

On white

14.22
#20255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20255B
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20255B#FFFFFF#000000##FFFFFF
##20255B1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012D5D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20255b;
/* rgb */ color: rgb(32, 37, 91);
/* oklch */ color: oklch(29.4% 0.096 274.9);
Tailwind
colors: {
  custom: {
    50: '#625f8a',
    500: '#20255b',
    950: '#000000',
  },
}
SCSS
$custom: #20255b;
$custom-light: #625f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#20255b",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 234.915,
    "s": 47.967,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29436,
    "c": 0.0957,
    "h": 274.9
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#20255B
secondary
#8F8947
accent
#CC50D8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #20255B

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

Preview Lab → · Contrast checker → · Palette generator →

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