#2B1FA9#2B1FA9

#2B1FA9 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.4% C 0.204 H 274.1°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2B1FA9
RGBrgb(43, 31, 169)
HSLhsl(245, 69%, 39%)
HSVhsv(245, 82%, 66%)
CMYKcmyk(74.6%, 81.7%, 0%, 33.7%)
CIE-LABlab(24.82, 48.92, -70.33)
CIE-LCHlch(24.82, 85.67, 304.82°)
OKLaboklab(37.35% 0.0145 -0.2034)
OKLCHoklch(37.35% 0.204 274.1)
XYZxyz(8.6453, 4.3573, 37.9138)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1FA9 #9DA91F
analogous
#1F58A9 #2B1FA9 #701FA9
triadic
#2B1FA9 #A92B1F #1FA92B
tetradic
#2B1FA9 #A91F58 #9DA91F #1FA970
square
#2B1FA9 #A91F58 #9DA91F #1FA970
split-complementary
#2B1FA9 #A9701F #58A91F
monochromatic
#110C42 #1E1675 #2B1FA9 #3C2DD8 #6C60E2

Accessibility & contrast

On white

11.22
#2B1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2B1FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1FA9
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1FA9#FFFFFF#000000##FFFFFF
##2B1FA91.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AD
Deuteranopia (green-blind)
#0034A7
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b1fa9;
/* rgb */ color: rgb(43, 31, 169);
/* oklch */ color: oklch(37.4% 0.204 274.1);
Tailwind
colors: {
  custom: {
    50: '#7a5fc4',
    500: '#2b1fa9',
    950: '#000000',
  },
}
SCSS
$custom: #2b1fa9;
$custom-light: #7a5fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1fa9",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 245.217,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37352,
    "c": 0.20392,
    "h": 274.1
  },
  "luminance": 0.04358
}

Semantic roles & 50–950 ramp

primary
#2B1FA9
secondary
#BDC75D
accent
#EC3CDD
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B1FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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