#20256D#20256D

#20256D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.123 H 273.7°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#20256D
RGBrgb(32, 37, 109)
HSLhsl(236, 55%, 28%)
HSVhsv(236, 71%, 43%)
CMYKcmyk(70.6%, 66.1%, 0%, 57.3%)
CIE-LABlab(18.95, 23.53, -42.54)
CIE-LCHlch(18.95, 48.61, 298.95°)
OKLaboklab(31.07% 0.008 -0.1227)
OKLCHoklch(31.07% 0.123 273.7)
XYZxyz(4.0166, 2.7340, 14.7811)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20256D #6D6820
analogous
#204B6D #20256D #41206D
triadic
#20256D #6D2025 #256D20
tetradic
#20256D #6D204B #6D6820 #206D41
square
#20256D #6D204B #6D6820 #206D41
split-complementary
#20256D #6D4120 #4B6D20
monochromatic
#070818 #12153E #20256D #2E359C #4049C7

Accessibility & contrast

On white

13.58
#20256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20256D
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20256D#FFFFFF#000000##FFFFFF
##20256D1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20256d;
/* rgb */ color: rgb(32, 37, 109);
/* oklch */ color: oklch(31.1% 0.123 273.7);
Tailwind
colors: {
  custom: {
    50: '#675f98',
    500: '#20256d',
    950: '#000000',
  },
}
SCSS
$custom: #20256d;
$custom-light: #675f98;
$custom-dark: #000000;
JSON
{
  "hex": "#20256d",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 236.104,
    "s": 54.61,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31074,
    "c": 0.12296,
    "h": 273.7
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#20256D
secondary
#A19B48
accent
#D44ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #20256D

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

Preview Lab → · Contrast checker → · Palette generator →

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