#20257F#20257F

#20257F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.148 H 272.4°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#20257F
RGBrgb(32, 37, 127)
HSLhsl(237, 60%, 31%)
HSVhsv(237, 75%, 50%)
CMYKcmyk(74.8%, 70.9%, 0%, 50.2%)
CIE-LABlab(20.68, 30.31, -51.23)
CIE-LCHlch(20.68, 59.53, 300.61°)
OKLaboklab(32.87% 0.0063 -0.1481)
OKLCHoklch(32.87% 0.148 272.4)
XYZxyz(5.0867, 3.1620, 20.4168)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20257F #7F7A20
analogous
#20547F #20257F #4A207F
triadic
#20257F #7F2025 #257F20
tetradic
#20257F #7F2054 #7F7A20 #207F4A
square
#20257F #7F2054 #7F7A20 #207F4A
split-complementary
#20257F #7F4A20 #547F20
monochromatic
#07091D #14174E #20257F #2C33B0 #4850D1

Accessibility & contrast

On white

12.86
#20257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20257F
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20257F#FFFFFF#000000##FFFFFF
##20257F1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #20257f;
/* rgb */ color: rgb(32, 37, 127);
/* oklch */ color: oklch(32.9% 0.148 272.4);
Tailwind
colors: {
  custom: {
    50: '#6b60a5',
    500: '#20257f',
    950: '#000000',
  },
}
SCSS
$custom: #20257f;
$custom-light: #6b60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20257f",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 236.842,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32871,
    "c": 0.14828,
    "h": 272.4
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#20257F
secondary
#B2AC49
accent
#DB45E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #20257F

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

Preview Lab → · Contrast checker → · Palette generator →

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