#2B31BA#2B31BA

#2B31BA is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.6% C 0.208 H 271.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#2B31BA
RGBrgb(43, 49, 186)
HSLhsl(237, 62%, 45%)
HSVhsv(237, 77%, 73%)
CMYKcmyk(76.9%, 73.7%, 0%, 27.1%)
CIE-LABlab(30.04, 44.86, -71.84)
CIE-LCHlch(30.04, 84.70, 301.98°)
OKLaboklab(41.58% 0.0041 -0.208)
OKLCHoklch(41.58% 0.208 271.1)
XYZxyz(10.9545, 6.2542, 47.0747)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31BA #BAB42B
analogous
#2B78BA #2B31BA #6D2BBA
triadic
#2B31BA #BA2B31 #31BA2B
tetradic
#2B31BA #BA2B78 #BAB42B #2BBA6D
square
#2B31BA #BA2B78 #BAB42B #2BBA6D
split-complementary
#2B31BA #BA6D2B #78BA2B
monochromatic
#141757 #202488 #2B31BA #4C52D6 #7E82E1

Accessibility & contrast

On white

9.33
#2B31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2B31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31BA
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31BA#FFFFFF#000000##FFFFFF
##2B31BA1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0040B8
Tritanopia (blue-blind)
#005973
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b31ba;
/* rgb */ color: rgb(43, 49, 186);
/* oklch */ color: oklch(41.6% 0.208 271.1);
Tailwind
colors: {
  custom: {
    50: '#7d6ad0',
    500: '#2b31ba',
    950: '#000000',
  },
}
SCSS
$custom: #2b31ba;
$custom-light: #7d6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31ba",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 237.483,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41579,
    "c": 0.20805,
    "h": 271.1
  },
  "luminance": 0.06255
}

Semantic roles & 50–950 ramp

primary
#2B31BA
secondary
#CAC677
accent
#DF42E6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0B0714
muted
#7C7A83

Preview Lab

Preview with #2B31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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