#20257A#20257A

#20257A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.141 H 272.8°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#20257A
RGBrgb(32, 37, 122)
HSLhsl(237, 58%, 30%)
HSVhsv(237, 74%, 48%)
CMYKcmyk(73.8%, 69.7%, 0%, 52.2%)
CIE-LABlab(20.18, 28.45, -48.87)
CIE-LCHlch(20.18, 56.55, 300.21°)
OKLaboklab(32.36% 0.0069 -0.1412)
OKLCHoklch(32.36% 0.141 272.8)
XYZxyz(4.7689, 3.0349, 18.7430)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20257A #7A7520
analogous
#20527A #20257A #48207A
triadic
#20257A #7A2025 #257A20
tetradic
#20257A #7A2052 #7A7520 #207A48
square
#20257A #7A2052 #7A7520 #207A48
split-complementary
#20257A #7A4820 #527A20
monochromatic
#070819 #13164A #20257A #2D34AA #464ECE

Accessibility & contrast

On white

13.07
#20257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#20257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20257A
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20257A#FFFFFF#000000##FFFFFF
##20257A1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #20257a;
/* rgb */ color: rgb(32, 37, 122);
/* oklch */ color: oklch(32.4% 0.141 272.8);
Tailwind
colors: {
  custom: {
    50: '#6a60a1',
    500: '#20257a',
    950: '#000000',
  },
}
SCSS
$custom: #20257a;
$custom-light: #6a60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#20257a",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 236.667,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32359,
    "c": 0.14142,
    "h": 272.8
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#20257A
secondary
#ADA849
accent
#D946E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #20257A

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

Preview Lab → · Contrast checker → · Palette generator →

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