#2031A7#2031A7

#2031A7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.187 H 268.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#2031A7
RGBrgb(32, 49, 167)
HSLhsl(232, 68%, 39%)
HSVhsv(232, 81%, 65%)
CMYKcmyk(80.8%, 70.7%, 0%, 34.5%)
CIE-LABlab(27.55, 37.32, -64.62)
CIE-LCHlch(27.55, 74.62, 300.01°)
OKLaboklab(39.06% -0.0045 -0.1872)
OKLCHoklch(39.06% 0.187 268.6)
XYZxyz(8.6666, 5.2927, 37.1166)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2031A7 #A79620
analogous
#2075A7 #2031A7 #5220A7
triadic
#2031A7 #A72031 #31A720
tetradic
#2031A7 #A72075 #A79620 #20A752
square
#2031A7 #A72075 #A79620 #20A752
split-complementary
#2031A7 #A75220 #75A720
monochromatic
#0C1340 #162274 #2031A7 #2D43D7 #6171E1

Accessibility & contrast

On white

10.20
#2031A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2031A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2031A7
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2031A7#FFFFFF#000000##FFFFFF
##2031A71.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2031a7;
/* rgb */ color: rgb(32, 49, 167);
/* oklch */ color: oklch(39.1% 0.187 268.6);
Tailwind
colors: {
  custom: {
    50: '#7469c2',
    500: '#2031a7',
    950: '#000000',
  },
}
SCSS
$custom: #2031a7;
$custom-light: #7469c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2031a7",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 232.444,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39061,
    "c": 0.18725,
    "h": 268.6
  },
  "luminance": 0.05294
}

Semantic roles & 50–950 ramp

primary
#2031A7
secondary
#C5B85D
accent
#D53DEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2031A7

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

Preview Lab → · Contrast checker → · Palette generator →

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