#2B1FA6#2B1FA6

#2B1FA6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.200 H 274.4°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2B1FA6
RGBrgb(43, 31, 166)
HSLhsl(245, 69%, 39%)
HSVhsv(245, 81%, 65%)
CMYKcmyk(74.1%, 81.3%, 0%, 34.9%)
CIE-LABlab(24.47, 47.99, -69.09)
CIE-LCHlch(24.47, 84.13, 304.78°)
OKLaboklab(37.01% 0.0153 -0.1998)
OKLCHoklch(37.01% 0.2 274.4)
XYZxyz(8.3669, 4.2459, 36.4476)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1FA6 #9AA61F
analogous
#1F56A6 #2B1FA6 #6E1FA6
triadic
#2B1FA6 #A62B1F #1FA62B
tetradic
#2B1FA6 #A61F56 #9AA61F #1FA66E
square
#2B1FA6 #A61F56 #9AA61F #1FA66E
split-complementary
#2B1FA6 #A66E1F #56A61F
monochromatic
#100C3F #1E1572 #2B1FA6 #3A2BD7 #6A5EE1

Accessibility & contrast

On white

11.36
#2B1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2B1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1FA6
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1FA6#FFFFFF#000000##FFFFFF
##2B1FA61.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b1fa6;
/* rgb */ color: rgb(43, 31, 166);
/* oklch */ color: oklch(37.0% 0.200 274.4);
Tailwind
colors: {
  custom: {
    50: '#795fc2',
    500: '#2b1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2b1fa6;
$custom-light: #795fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1fa6",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 245.333,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37007,
    "c": 0.2004,
    "h": 274.4
  },
  "luminance": 0.04247
}

Semantic roles & 50–950 ramp

primary
#2B1FA6
secondary
#BCC55B
accent
#EB3CDC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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