#20127A#20127A

#20127A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.6% C 0.161 H 276.1°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#20127A
RGBrgb(32, 18, 122)
HSLhsl(248, 74%, 27%)
HSVhsv(248, 85%, 48%)
CMYKcmyk(73.8%, 85.2%, 0%, 52.2%)
CIE-LABlab(16.23, 39.58, -55.40)
CIE-LCHlch(16.23, 68.08, 305.54°)
OKLaboklab(29.55% 0.0172 -0.1601)
OKLCHoklch(29.55% 0.161 276.1)
XYZxyz(4.3237, 2.1444, 18.5946)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20127A #6C7A12
analogous
#12387A #20127A #54127A
triadic
#20127A #7A2012 #127A20
tetradic
#20127A #7A1238 #6C7A12 #127A54
square
#20127A #7A1238 #6C7A12 #127A54
split-complementary
#20127A #7A5412 #387A12
monochromatic
#07041B #120A45 #20127A #2E1AAF #4027DF

Accessibility & contrast

On white

14.70
#20127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#20127A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20127A
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20127A#FFFFFF#000000##FFFFFF
##20127A1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #20127a;
/* rgb */ color: rgb(32, 18, 122);
/* oklch */ color: oklch(29.6% 0.161 276.1);
Tailwind
colors: {
  custom: {
    50: '#6c54a2',
    500: '#20127a',
    950: '#000000',
  },
}
SCSS
$custom: #20127a;
$custom-light: #6c54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20127a",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 248.077,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29554,
    "c": 0.16104,
    "h": 276.1
  },
  "luminance": 0.02145
}

Semantic roles & 50–950 ramp

primary
#20127A
secondary
#A0B038
accent
#F137D8
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20127A

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

Preview Lab → · Contrast checker → · Palette generator →

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