#20268A#20268A

#20268A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.162 H 271.5°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#20268A
RGBrgb(32, 38, 138)
HSLhsl(237, 62%, 33%)
HSVhsv(237, 77%, 54%)
CMYKcmyk(76.8%, 72.5%, 0%, 45.9%)
CIE-LABlab(22.04, 33.71, -55.91)
CIE-LCHlch(22.04, 65.28, 301.09°)
OKLaboklab(34.2% 0.0043 -0.1618)
OKLCHoklch(34.2% 0.162 271.5)
XYZxyz(5.8747, 3.5277, 24.4111)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20268A #8A8420
analogous
#205B8A #20268A #4F208A
triadic
#20268A #8A2026 #268A20
tetradic
#20268A #8A205B #8A8420 #208A4F
square
#20268A #8A205B #8A8420 #208A4F
split-complementary
#20268A #8A4F20 #5B8A20
monochromatic
#090B27 #141858 #20268A #2C34BC #4E56D6

Accessibility & contrast

On white

12.31
#20268A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20268A
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20268A#FFFFFF#000000##FFFFFF
##20268A1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20268a;
/* rgb */ color: rgb(32, 38, 138);
/* oklch */ color: oklch(34.2% 0.162 271.5);
Tailwind
colors: {
  custom: {
    50: '#6e61ad',
    500: '#20268a',
    950: '#000000',
  },
}
SCSS
$custom: #20268a;
$custom-light: #6e61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20268a",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 236.604,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34195,
    "c": 0.16185,
    "h": 271.5
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#20268A
secondary
#B9B34D
accent
#DC42E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #20268A

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

Preview Lab → · Contrast checker → · Palette generator →

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