#2B31B3#2B31B3

#2B31B3 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.8% C 0.199 H 271.5°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2B31B3
RGBrgb(43, 49, 179)
HSLhsl(237, 61%, 44%)
HSVhsv(237, 76%, 70%)
CMYKcmyk(76%, 72.6%, 0%, 29.8%)
CIE-LABlab(29.32, 42.48, -68.88)
CIE-LCHlch(29.32, 80.93, 301.66°)
OKLaboklab(40.85% 0.0051 -0.1994)
OKLCHoklch(40.85% 0.199 271.5)
XYZxyz(10.2285, 5.9638, 43.2511)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31B3 #B3AD2B
analogous
#2B75B3 #2B31B3 #692BB3
triadic
#2B31B3 #B32B31 #31B32B
tetradic
#2B31B3 #B32B75 #B3AD2B #2BB369
square
#2B31B3 #B32B75 #B3AD2B #2BB369
split-complementary
#2B31B3 #B3692B #75B32B
monochromatic
#131650 #1F2382 #2B31B3 #484ED3 #797EDF

Accessibility & contrast

On white

9.58
#2B31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2B31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31B3
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31B3#FFFFFF#000000##FFFFFF
##2B31B31.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2b31b3;
/* rgb */ color: rgb(43, 49, 179);
/* oklch */ color: oklch(40.8% 0.199 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b6acb',
    500: '#2b31b3',
    950: '#000000',
  },
}
SCSS
$custom: #2b31b3;
$custom-light: #7b6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31b3",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 237.353,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40847,
    "c": 0.19946,
    "h": 271.5
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

primary
#2B31B3
secondary
#C7C373
accent
#DD43E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2B31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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