#2B31B8#2B31B8

#2B31B8 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.4% C 0.206 H 271.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2B31B8
RGBrgb(43, 49, 184)
HSLhsl(237, 62%, 45%)
HSVhsv(237, 77%, 72%)
CMYKcmyk(76.6%, 73.4%, 0%, 27.8%)
CIE-LABlab(29.84, 44.18, -71.00)
CIE-LCHlch(29.84, 83.63, 301.89°)
OKLaboklab(41.37% 0.0044 -0.2056)
OKLCHoklch(41.37% 0.206 271.2)
XYZxyz(10.7434, 6.1697, 45.9628)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31B8 #B8B22B
analogous
#2B78B8 #2B31B8 #6C2BB8
triadic
#2B31B8 #B82B31 #31B82B
tetradic
#2B31B8 #B82B78 #B8B22B #2BB86C
square
#2B31B8 #B82B78 #B8B22B #2BB86C
split-complementary
#2B31B8 #B86C2B #78B82B
monochromatic
#141755 #1F2486 #2B31B8 #4B51D5 #7D81E1

Accessibility & contrast

On white

9.40
#2B31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2B31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31B8
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31B8#FFFFFF#000000##FFFFFF
##2B31B81.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBC
Deuteranopia (green-blind)
#003FB6
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b31b8;
/* rgb */ color: rgb(43, 49, 184);
/* oklch */ color: oklch(41.4% 0.206 271.2);
Tailwind
colors: {
  custom: {
    50: '#7c6acf',
    500: '#2b31b8',
    950: '#000000',
  },
}
SCSS
$custom: #2b31b8;
$custom-light: #7c6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31b8",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 237.447,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41369,
    "c": 0.20561,
    "h": 271.2
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#2B31B8
secondary
#C9C576
accent
#DE43E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2B31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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