#2B31AD#2B31AD

#2B31AD is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.192 H 271.8°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2B31AD
RGBrgb(43, 49, 173)
HSLhsl(237, 60%, 42%)
HSVhsv(237, 75%, 68%)
CMYKcmyk(75.1%, 71.7%, 0%, 32.2%)
CIE-LABlab(28.71, 40.41, -66.30)
CIE-LCHlch(28.71, 77.65, 301.36°)
OKLaboklab(40.23% 0.006 -0.1919)
OKLCHoklch(40.23% 0.192 271.8)
XYZxyz(9.6349, 5.7263, 40.1246)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31AD #ADA72B
analogous
#2B72AD #2B31AD #662BAD
triadic
#2B31AD #AD2B31 #31AD2B
tetradic
#2B31AD #AD2B72 #ADA72B #2BAD66
square
#2B31AD #AD2B72 #ADA72B #2BAD66
split-complementary
#2B31AD #AD662B #72AD2B
monochromatic
#13154B #1F237C #2B31AD #454BD1 #767ADD

Accessibility & contrast

On white

9.79
#2B31AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2B31AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31AD
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31AD#FFFFFF#000000##FFFFFF
##2B31AD1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#003DAB
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b31ad;
/* rgb */ color: rgb(43, 49, 173);
/* oklch */ color: oklch(40.2% 0.192 271.8);
Tailwind
colors: {
  custom: {
    50: '#796ac7',
    500: '#2b31ad',
    950: '#000000',
  },
}
SCSS
$custom: #2b31ad;
$custom-light: #796ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31ad",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 237.231,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40228,
    "c": 0.19196,
    "h": 271.8
  },
  "luminance": 0.05727
}

Semantic roles & 50–950 ramp

primary
#2B31AD
secondary
#C4C16F
accent
#DC44E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2B31AD

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

Preview Lab → · Contrast checker → · Palette generator →

#2B31AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva