#2B1F9B#2B1F9B

#2B1F9B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.187 H 275.6°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2B1F9B
RGBrgb(43, 31, 155)
HSLhsl(246, 67%, 36%)
HSVhsv(246, 80%, 61%)
CMYKcmyk(72.3%, 80%, 0%, 39.2%)
CIE-LABlab(23.20, 44.54, -64.49)
CIE-LCHlch(23.20, 78.37, 304.63°)
OKLaboklab(35.75% 0.0181 -0.1865)
OKLCHoklch(35.75% 0.187 275.6)
XYZxyz(7.4007, 3.8594, 31.3589)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F9B #8F9B1F
analogous
#1F519B #2B1F9B #691F9B
triadic
#2B1F9B #9B2B1F #1F9B2B
tetradic
#2B1F9B #9B1F51 #8F9B1F #1F9B69
square
#2B1F9B #9B1F51 #8F9B1F #1F9B69
split-complementary
#2B1F9B #9B691F #519B1F
monochromatic
#0F0B35 #1D1568 #2B1F9B #3929CE #6457DD

Accessibility & contrast

On white

11.85
#2B1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2B1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F9B
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F9B#FFFFFF#000000##FFFFFF
##2B1F9B1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b1f9b;
/* rgb */ color: rgb(43, 31, 155);
/* oklch */ color: oklch(35.8% 0.187 275.6);
Tailwind
colors: {
  custom: {
    50: '#775eba',
    500: '#2b1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f9b;
$custom-light: #775eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f9b",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 245.806,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35755,
    "c": 0.18734,
    "h": 275.6
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#2B1F9B
secondary
#B7C155
accent
#EA3ED9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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