#2B1FB0#2B1FB0

#2B1FB0 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.2% C 0.212 H 273.4°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2B1FB0
RGBrgb(43, 31, 176)
HSLhsl(245, 70%, 41%)
HSVhsv(245, 82%, 69%)
CMYKcmyk(75.6%, 82.4%, 0%, 31%)
CIE-LABlab(25.65, 51.06, -73.17)
CIE-LCHlch(25.65, 89.22, 304.91°)
OKLaboklab(38.16% 0.0127 -0.2116)
OKLCHoklch(38.16% 0.212 273.4)
XYZxyz(9.3201, 4.6272, 41.4678)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1FB0 #A4B01F
analogous
#1F5BB0 #2B1FB0 #741FB0
triadic
#2B1FB0 #B02B1F #1FB02B
tetradic
#2B1FB0 #B01F5B #A4B01F #1FB074
square
#2B1FB0 #B01F5B #A4B01F #1FB074
split-complementary
#2B1FB0 #B0741F #5BB01F
monochromatic
#120D48 #1E167C #2B1FB0 #3F31DB #7065E4

Accessibility & contrast

On white

10.91
#2B1FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2B1FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1FB0
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1FB0#FFFFFF#000000##FFFFFF
##2B1FB01.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B4
Deuteranopia (green-blind)
#0036AE
Tritanopia (blue-blind)
#004D69
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b1fb0;
/* rgb */ color: rgb(43, 31, 176);
/* oklch */ color: oklch(38.2% 0.212 273.4);
Tailwind
colors: {
  custom: {
    50: '#7c5fc9',
    500: '#2b1fb0',
    950: '#000000',
  },
}
SCSS
$custom: #2b1fb0;
$custom-light: #7c5fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1fb0",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 176
  },
  "hsl": {
    "h": 244.966,
    "s": 70.048,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38163,
    "c": 0.21202,
    "h": 273.4
  },
  "luminance": 0.04628
}

Semantic roles & 50–950 ramp

primary
#2B1FB0
secondary
#C1C962
accent
#ED3BDE
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B1FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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