#2B1FAC#2B1FAC

#2B1FAC is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.7% C 0.207 H 273.8°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#2B1FAC
RGBrgb(43, 31, 172)
HSLhsl(245, 69%, 40%)
HSVhsv(245, 82%, 67%)
CMYKcmyk(75%, 82%, 0%, 32.5%)
CIE-LABlab(25.17, 49.84, -71.55)
CIE-LCHlch(25.17, 87.20, 304.86°)
OKLaboklab(37.7% 0.0137 -0.2069)
OKLCHoklch(37.7% 0.207 273.8)
XYZxyz(8.9302, 4.4712, 39.4141)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1FAC #A0AC1F
analogous
#1F5AAC #2B1FAC #711FAC
triadic
#2B1FAC #AC2B1F #1FAC2B
tetradic
#2B1FAC #AC1F5A #A0AC1F #1FAC71
square
#2B1FAC #AC1F5A #A0AC1F #1FAC71
split-complementary
#2B1FAC #AC711F #5AAC1F
monochromatic
#110C44 #1E1678 #2B1FAC #3D2FD9 #6E63E3

Accessibility & contrast

On white

11.09
#2B1FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2B1FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1FAC
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1FAC#FFFFFF#000000##FFFFFF
##2B1FAC1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B0
Deuteranopia (green-blind)
#0035AA
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b1fac;
/* rgb */ color: rgb(43, 31, 172);
/* oklch */ color: oklch(37.7% 0.207 273.8);
Tailwind
colors: {
  custom: {
    50: '#7b5fc6',
    500: '#2b1fac',
    950: '#000000',
  },
}
SCSS
$custom: #2b1fac;
$custom-light: #7b5fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1fac",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 172
  },
  "hsl": {
    "h": 245.106,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37699,
    "c": 0.2074,
    "h": 273.8
  },
  "luminance": 0.04472
}

Semantic roles & 50–950 ramp

primary
#2B1FAC
secondary
#BFC85F
accent
#EC3CDD
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B1FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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