#20255F#20255F

#20255F is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.8% C 0.102 H 274.7°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#20255F
RGBrgb(32, 37, 95)
HSLhsl(235, 50%, 25%)
HSVhsv(235, 66%, 37%)
CMYKcmyk(66.3%, 61.1%, 0%, 62.7%)
CIE-LABlab(17.72, 18.14, -35.36)
CIE-LCHlch(17.72, 39.74, 297.16°)
OKLaboklab(29.78% 0.0083 -0.1016)
OKLCHoklch(29.78% 0.102 274.7)
XYZxyz(3.3221, 2.4562, 11.1233)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20255F #5F5A20
analogous
#20455F #20255F #3B205F
triadic
#20255F #5F2025 #255F20
tetradic
#20255F #5F2045 #5F5A20 #205F3B
square
#20255F #5F2045 #5F5A20 #205F3B
split-complementary
#20255F #5F3B20 #455F20
monochromatic
#080917 #111331 #20255F #2F378D #3F49BB

Accessibility & contrast

On white

14.08
#20255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20255F
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20255F#FFFFFF#000000##FFFFFF
##20255F1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20255f;
/* rgb */ color: rgb(32, 37, 95);
/* oklch */ color: oklch(29.8% 0.102 274.7);
Tailwind
colors: {
  custom: {
    50: '#635f8d',
    500: '#20255f',
    950: '#000000',
  },
}
SCSS
$custom: #20255f;
$custom-light: #635f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#20255f",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 235.238,
    "s": 49.606,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29784,
    "c": 0.10194,
    "h": 274.7
  },
  "luminance": 0.02456
}

Semantic roles & 50–950 ramp

primary
#20255F
secondary
#938D47
accent
#CE4FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #20255F

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

Preview Lab → · Contrast checker → · Palette generator →

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