#20257E#20257E

#20257E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.147 H 272.5°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#20257E
RGBrgb(32, 37, 126)
HSLhsl(237, 59%, 31%)
HSVhsv(237, 75%, 49%)
CMYKcmyk(74.6%, 70.6%, 0%, 50.6%)
CIE-LABlab(20.58, 29.94, -50.76)
CIE-LCHlch(20.58, 58.94, 300.54°)
OKLaboklab(32.77% 0.0064 -0.1468)
OKLCHoklch(32.77% 0.147 272.5)
XYZxyz(5.0219, 3.1361, 20.0753)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20257E #7E7920
analogous
#20547E #20257E #4A207E
triadic
#20257E #7E2025 #257E20
tetradic
#20257E #7E2054 #7E7920 #207E4A
square
#20257E #7E2054 #7E7920 #207E4A
split-complementary
#20257E #7E4A20 #547E20
monochromatic
#07081C #14174D #20257E #2C33AF #484FD0

Accessibility & contrast

On white

12.90
#20257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#20257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20257E
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20257E#FFFFFF#000000##FFFFFF
##20257E1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #20257e;
/* rgb */ color: rgb(32, 37, 126);
/* oklch */ color: oklch(32.8% 0.147 272.5);
Tailwind
colors: {
  custom: {
    50: '#6b60a4',
    500: '#20257e',
    950: '#000000',
  },
}
SCSS
$custom: #20257e;
$custom-light: #6b60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20257e",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 236.809,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32768,
    "c": 0.14692,
    "h": 272.5
  },
  "luminance": 0.03137
}

Semantic roles & 50–950 ramp

primary
#20257E
secondary
#B1AB49
accent
#DA45E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #20257E

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

Preview Lab → · Contrast checker → · Palette generator →

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