#2031A6#2031A6

#2031A6 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.186 H 268.7°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2031A6
RGBrgb(32, 49, 166)
HSLhsl(232, 68%, 39%)
HSVhsv(232, 81%, 65%)
CMYKcmyk(80.7%, 70.5%, 0%, 34.9%)
CIE-LABlab(27.45, 36.96, -64.18)
CIE-LCHlch(27.45, 74.06, 299.93°)
OKLaboklab(38.96% -0.0044 -0.1859)
OKLCHoklch(38.96% 0.186 268.7)
XYZxyz(8.5745, 5.2559, 36.6316)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2031A6 #A69520
analogous
#2074A6 #2031A6 #5220A6
triadic
#2031A6 #A62031 #31A620
tetradic
#2031A6 #A62074 #A69520 #20A652
square
#2031A6 #A62074 #A69520 #20A652
split-complementary
#2031A6 #A65220 #74A620
monochromatic
#0C133F #162273 #2031A6 #2D42D6 #6070E0

Accessibility & contrast

On white

10.24
#2031A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2031A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2031A6
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2031A6#FFFFFF#000000##FFFFFF
##2031A61.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2031a6;
/* rgb */ color: rgb(32, 49, 166);
/* oklch */ color: oklch(39.0% 0.186 268.7);
Tailwind
colors: {
  custom: {
    50: '#7469c2',
    500: '#2031a6',
    950: '#000000',
  },
}
SCSS
$custom: #2031a6;
$custom-light: #7469c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2031a6",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 232.388,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38958,
    "c": 0.18598,
    "h": 268.7
  },
  "luminance": 0.05257
}

Semantic roles & 50–950 ramp

primary
#2031A6
secondary
#C5B85D
accent
#D53DEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2031A6

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

Preview Lab → · Contrast checker → · Palette generator →

#2031A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva