#20256E#20256E

#20256E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.2% C 0.124 H 273.6°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#20256E
RGBrgb(32, 37, 110)
HSLhsl(236, 55%, 28%)
HSVhsv(236, 71%, 43%)
CMYKcmyk(70.9%, 66.4%, 0%, 56.9%)
CIE-LABlab(19.04, 23.92, -43.04)
CIE-LCHlch(19.04, 49.23, 299.06°)
OKLaboklab(31.17% 0.0079 -0.1242)
OKLCHoklch(31.17% 0.124 273.6)
XYZxyz(4.0708, 2.7556, 15.0662)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20256E #6E6920
analogous
#204C6E #20256E #42206E
triadic
#20256E #6E2025 #256E20
tetradic
#20256E #6E204C #6E6920 #206E42
square
#20256E #6E204C #6E6920 #206E42
split-complementary
#20256E #6E4220 #4C6E20
monochromatic
#070818 #12153F #20256E #2E359D #4149C8

Accessibility & contrast

On white

13.54
#20256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#20256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20256E
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20256E#FFFFFF#000000##FFFFFF
##20256E1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20256e;
/* rgb */ color: rgb(32, 37, 110);
/* oklch */ color: oklch(31.2% 0.124 273.6);
Tailwind
colors: {
  custom: {
    50: '#675f98',
    500: '#20256e',
    950: '#000000',
  },
}
SCSS
$custom: #20256e;
$custom-light: #675f98;
$custom-dark: #000000;
JSON
{
  "hex": "#20256e",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 236.154,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3117,
    "c": 0.12441,
    "h": 273.6
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#20256E
secondary
#A29C48
accent
#D54ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #20256E

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

Preview Lab → · Contrast checker → · Palette generator →

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