#20256B#20256B

#20256B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.9% C 0.120 H 273.9°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#20256B
RGBrgb(32, 37, 107)
HSLhsl(236, 54%, 27%)
HSVhsv(236, 70%, 42%)
CMYKcmyk(70.1%, 65.4%, 0%, 58%)
CIE-LABlab(18.76, 22.77, -41.54)
CIE-LCHlch(18.76, 47.37, 298.73°)
OKLaboklab(30.88% 0.0081 -0.1198)
OKLCHoklch(30.88% 0.12 273.9)
XYZxyz(3.9102, 2.6914, 14.2205)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20256B #6B6620
analogous
#204B6B #20256B #41206B
triadic
#20256B #6B2025 #256B20
tetradic
#20256B #6B204B #6B6620 #206B41
square
#20256B #6B204B #6B6620 #206B41
split-complementary
#20256B #6B4120 #4B6B20
monochromatic
#070818 #12153C #20256B #2E359A #4049C6

Accessibility & contrast

On white

13.65
#20256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#20256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20256B
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20256B#FFFFFF#000000##FFFFFF
##20256B1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002A6A
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20256b;
/* rgb */ color: rgb(32, 37, 107);
/* oklch */ color: oklch(30.9% 0.120 273.9);
Tailwind
colors: {
  custom: {
    50: '#665f96',
    500: '#20256b',
    950: '#000000',
  },
}
SCSS
$custom: #20256b;
$custom-light: #665f96;
$custom-dark: #000000;
JSON
{
  "hex": "#20256b",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 236,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30884,
    "c": 0.12003,
    "h": 273.9
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#20256B
secondary
#9F9948
accent
#D44ADD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #20256B

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

Preview Lab → · Contrast checker → · Palette generator →

#20256B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva