#20255A#20255A

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

Color values

HEX#20255A
RGBrgb(32, 37, 90)
HSLhsl(235, 48%, 24%)
HSVhsv(235, 64%, 35%)
CMYKcmyk(64.4%, 58.9%, 0%, 64.7%)
CIE-LABlab(17.31, 16.20, -32.69)
CIE-LCHlch(17.31, 36.49, 296.36°)
OKLaboklab(29.35% 0.0081 -0.0938)
OKLCHoklch(29.35% 0.094 274.9)
XYZxyz(3.1021, 2.3682, 9.9645)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20255A #5A5520
analogous
#20425A #20255A #38205A
triadic
#20255A #5A2025 #255A20
tetradic
#20255A #5A2042 #5A5520 #205A38
square
#20255A #5A2042 #5A5520 #205A38
split-complementary
#20255A #5A3820 #425A20
monochromatic
#080917 #10122D #20255A #303887 #404AB4

Accessibility & contrast

On white

14.25
#20255A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#20255A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20255A
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20255A#FFFFFF#000000##FFFFFF
##20255A1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022D5C
Deuteranopia (green-blind)
#002859
Tritanopia (blue-blind)
#00313B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20255a;
/* rgb */ color: rgb(32, 37, 90);
/* oklch */ color: oklch(29.4% 0.094 274.9);
Tailwind
colors: {
  custom: {
    50: '#625f89',
    500: '#20255a',
    950: '#000000',
  },
}
SCSS
$custom: #20255a;
$custom-light: #625f89;
$custom-dark: #000000;
JSON
{
  "hex": "#20255a",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 90
  },
  "hsl": {
    "h": 234.828,
    "s": 47.541,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29351,
    "c": 0.09412,
    "h": 274.9
  },
  "luminance": 0.02368
}

Semantic roles & 50–950 ramp

primary
#20255A
secondary
#8E8847
accent
#CC51D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040B
muted
#7A797C

Preview Lab

Preview with #20255A

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

Preview Lab → · Contrast checker → · Palette generator →

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