#20256C#20256C

#20256C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.121 H 273.8°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#20256C
RGBrgb(32, 37, 108)
HSLhsl(236, 54%, 27%)
HSVhsv(236, 70%, 42%)
CMYKcmyk(70.4%, 65.7%, 0%, 57.6%)
CIE-LABlab(18.85, 23.15, -42.04)
CIE-LCHlch(18.85, 47.99, 298.84°)
OKLaboklab(30.98% 0.008 -0.1212)
OKLCHoklch(30.98% 0.121 273.8)
XYZxyz(3.9631, 2.7126, 14.4992)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20256C #6C6720
analogous
#204B6C #20256C #41206C
triadic
#20256C #6C2025 #256C20
tetradic
#20256C #6C204B #6C6720 #206C41
square
#20256C #6C204B #6C6720 #206C41
split-complementary
#20256C #6C4120 #4B6C20
monochromatic
#070818 #12153D #20256C #2E359B #4049C6

Accessibility & contrast

On white

13.61
#20256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20256C
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20256C#FFFFFF#000000##FFFFFF
##20256C1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20256c;
/* rgb */ color: rgb(32, 37, 108);
/* oklch */ color: oklch(31.0% 0.121 273.8);
Tailwind
colors: {
  custom: {
    50: '#665f97',
    500: '#20256c',
    950: '#000000',
  },
}
SCSS
$custom: #20256c;
$custom-light: #665f97;
$custom-dark: #000000;
JSON
{
  "hex": "#20256c",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 236.053,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30979,
    "c": 0.12149,
    "h": 273.8
  },
  "luminance": 0.02713
}

Semantic roles & 50–950 ramp

primary
#20256C
secondary
#A09A48
accent
#D44ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #20256C

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

Preview Lab → · Contrast checker → · Palette generator →

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