#20268B#20268B

#20268B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.163 H 271.5°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#20268B
RGBrgb(32, 38, 139)
HSLhsl(237, 63%, 34%)
HSVhsv(237, 77%, 55%)
CMYKcmyk(77%, 72.7%, 0%, 45.5%)
CIE-LABlab(22.15, 34.07, -56.36)
CIE-LCHlch(22.15, 65.86, 301.15°)
OKLaboklab(34.3% 0.0041 -0.1631)
OKLCHoklch(34.3% 0.163 271.5)
XYZxyz(5.9474, 3.5567, 24.7942)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20268B #8B8520
analogous
#205B8B #20268B #4F208B
triadic
#20268B #8B2026 #268B20
tetradic
#20268B #8B205B #8B8520 #208B4F
square
#20268B #8B205B #8B8520 #208B4F
split-complementary
#20268B #8B4F20 #5B8B20
monochromatic
#090B28 #151859 #20268B #2B34BD #4F57D6

Accessibility & contrast

On white

12.27
#20268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#20268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20268B
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20268B#FFFFFF#000000##FFFFFF
##20268B1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #20268b;
/* rgb */ color: rgb(32, 38, 139);
/* oklch */ color: oklch(34.3% 0.163 271.5);
Tailwind
colors: {
  custom: {
    50: '#6e61ae',
    500: '#20268b',
    950: '#000000',
  },
}
SCSS
$custom: #20268b;
$custom-light: #6e61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20268b",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 236.636,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34301,
    "c": 0.16316,
    "h": 271.5
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#20268B
secondary
#BAB34D
accent
#DC42E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #20268B

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

Preview Lab → · Contrast checker → · Palette generator →

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