#20268C#20268C

#20268C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.164 H 271.4°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#20268C
RGBrgb(32, 38, 140)
HSLhsl(237, 63%, 34%)
HSVhsv(237, 77%, 55%)
CMYKcmyk(77.1%, 72.9%, 0%, 45.1%)
CIE-LABlab(22.25, 34.43, -56.81)
CIE-LCHlch(22.25, 66.43, 301.22°)
OKLaboklab(34.41% 0.004 -0.1644)
OKLCHoklch(34.41% 0.164 271.4)
XYZxyz(6.0208, 3.5861, 25.1807)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20268C #8C8620
analogous
#205C8C #20268C #50208C
triadic
#20268C #8C2026 #268C20
tetradic
#20268C #8C205C #8C8620 #208C50
square
#20268C #8C205C #8C8620 #208C50
split-complementary
#20268C #8C5020 #5C8C20
monochromatic
#090B28 #15185A #20268C #2B34BE #5057D7

Accessibility & contrast

On white

12.23
#20268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#20268C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20268C
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20268C#FFFFFF#000000##FFFFFF
##20268C1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #20268c;
/* rgb */ color: rgb(32, 38, 140);
/* oklch */ color: oklch(34.4% 0.164 271.4);
Tailwind
colors: {
  custom: {
    50: '#6e61af',
    500: '#20268c',
    950: '#000000',
  },
}
SCSS
$custom: #20268c;
$custom-light: #6e61af;
$custom-dark: #000000;
JSON
{
  "hex": "#20268c",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 236.667,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34407,
    "c": 0.16448,
    "h": 271.4
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#20268C
secondary
#BAB44E
accent
#DD42E6
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #20268C

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

Preview Lab → · Contrast checker → · Palette generator →

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