#20257D#20257D

#20257D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.146 H 272.6°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#20257D
RGBrgb(32, 37, 125)
HSLhsl(237, 59%, 31%)
HSVhsv(237, 74%, 49%)
CMYKcmyk(74.4%, 70.4%, 0%, 51%)
CIE-LABlab(20.48, 29.57, -50.29)
CIE-LCHlch(20.48, 58.34, 300.46°)
OKLaboklab(32.67% 0.0065 -0.1454)
OKLCHoklch(32.67% 0.146 272.6)
XYZxyz(4.9577, 3.1104, 19.7371)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20257D #7D7820
analogous
#20537D #20257D #49207D
triadic
#20257D #7D2025 #257D20
tetradic
#20257D #7D2053 #7D7820 #207D49
square
#20257D #7D2053 #7D7820 #207D49
split-complementary
#20257D #7D4920 #537D20
monochromatic
#07081C #14174C #20257D #2C33AE #474FD0

Accessibility & contrast

On white

12.95
#20257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#20257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20257D
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20257D#FFFFFF#000000##FFFFFF
##20257D1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #20257d;
/* rgb */ color: rgb(32, 37, 125);
/* oklch */ color: oklch(32.7% 0.146 272.6);
Tailwind
colors: {
  custom: {
    50: '#6b60a4',
    500: '#20257d',
    950: '#000000',
  },
}
SCSS
$custom: #20257d;
$custom-light: #6b60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20257d",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 236.774,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32665,
    "c": 0.14555,
    "h": 272.6
  },
  "luminance": 0.03111
}

Semantic roles & 50–950 ramp

primary
#20257D
secondary
#B0AA49
accent
#DA45E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #20257D

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

Preview Lab → · Contrast checker → · Palette generator →

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