#20256A#20256A

#20256A is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.8% C 0.119 H 273.9°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#20256A
RGBrgb(32, 37, 106)
HSLhsl(236, 54%, 27%)
HSVhsv(236, 70%, 42%)
CMYKcmyk(69.8%, 65.1%, 0%, 58.4%)
CIE-LABlab(18.67, 22.38, -41.03)
CIE-LCHlch(18.67, 46.74, 298.61°)
OKLaboklab(30.79% 0.0081 -0.1183)
OKLCHoklch(30.79% 0.119 273.9)
XYZxyz(3.8579, 2.6705, 13.9450)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20256A #6A6520
analogous
#204A6A #20256A #40206A
triadic
#20256A #6A2025 #256A20
tetradic
#20256A #6A204A #6A6520 #206A40
square
#20256A #6A204A #6A6520 #206A40
split-complementary
#20256A #6A4020 #4A6A20
monochromatic
#070818 #12153B #20256A #2E3599 #3F48C5

Accessibility & contrast

On white

13.69
#20256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#20256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20256A
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20256A#FFFFFF#000000##FFFFFF
##20256A1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #20256a;
/* rgb */ color: rgb(32, 37, 106);
/* oklch */ color: oklch(30.8% 0.119 273.9);
Tailwind
colors: {
  custom: {
    50: '#665f95',
    500: '#20256a',
    950: '#000000',
  },
}
SCSS
$custom: #20256a;
$custom-light: #665f95;
$custom-dark: #000000;
JSON
{
  "hex": "#20256a",
  "rgb": {
    "r": 32,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 235.946,
    "s": 53.623,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30789,
    "c": 0.11856,
    "h": 273.9
  },
  "luminance": 0.02671
}

Semantic roles & 50–950 ramp

primary
#20256A
secondary
#9E9848
accent
#D34BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #20256A

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

Preview Lab → · Contrast checker → · Palette generator →

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