#20246C#20246C

#20246C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.8% C 0.123 H 274.1°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#20246C
RGBrgb(32, 36, 108)
HSLhsl(237, 54%, 27%)
HSVhsv(237, 70%, 42%)
CMYKcmyk(70.4%, 66.7%, 0%, 57.6%)
CIE-LABlab(18.59, 23.84, -42.47)
CIE-LCHlch(18.59, 48.70, 299.31°)
OKLaboklab(30.78% 0.0089 -0.1225)
OKLCHoklch(30.78% 0.123 274.1)
XYZxyz(3.9324, 2.6512, 14.4889)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20246C #6C6820
analogous
#204A6C #20246C #42206C
triadic
#20246C #6C2024 #246C20
tetradic
#20246C #6C204A #6C6820 #206C42
square
#20246C #6C204A #6C6820 #206C42
split-complementary
#20246C #6C4220 #4A6C20
monochromatic
#070818 #12143D #20246C #2E349B #4047C6

Accessibility & contrast

On white

13.72
#20246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#20246C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20246C
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20246C#FFFFFF#000000##FFFFFF
##20246C1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #20246c;
/* rgb */ color: rgb(32, 36, 108);
/* oklch */ color: oklch(30.8% 0.123 274.1);
Tailwind
colors: {
  custom: {
    50: '#665e97',
    500: '#20246c',
    950: '#000000',
  },
}
SCSS
$custom: #20246c;
$custom-light: #665e97;
$custom-dark: #000000;
JSON
{
  "hex": "#20246c",
  "rgb": {
    "r": 32,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 236.842,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30784,
    "c": 0.12283,
    "h": 274.1
  },
  "luminance": 0.02652
}

Semantic roles & 50–950 ramp

primary
#20246C
secondary
#A09B48
accent
#D64ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #20246C

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

Preview Lab → · Contrast checker → · Palette generator →

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