#2B1FA7#2B1FA7

#2B1FA7 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.1% C 0.202 H 274.3°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2B1FA7
RGBrgb(43, 31, 167)
HSLhsl(245, 69%, 39%)
HSVhsv(245, 81%, 65%)
CMYKcmyk(74.3%, 81.4%, 0%, 34.5%)
CIE-LABlab(24.58, 48.30, -69.51)
CIE-LCHlch(24.58, 84.64, 304.80°)
OKLaboklab(37.12% 0.015 -0.201)
OKLCHoklch(37.12% 0.202 274.3)
XYZxyz(8.4590, 4.2827, 36.9326)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1FA7 #9BA71F
analogous
#1F57A7 #2B1FA7 #6F1FA7
triadic
#2B1FA7 #A72B1F #1FA72B
tetradic
#2B1FA7 #A71F57 #9BA71F #1FA76F
square
#2B1FA7 #A71F57 #9BA71F #1FA76F
split-complementary
#2B1FA7 #A76F1F #57A71F
monochromatic
#100C40 #1E1573 #2B1FA7 #3B2BD8 #6B5FE1

Accessibility & contrast

On white

11.31
#2B1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2B1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1FA7
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1FA7#FFFFFF#000000##FFFFFF
##2B1FA71.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b1fa7;
/* rgb */ color: rgb(43, 31, 167);
/* oklch */ color: oklch(37.1% 0.202 274.3);
Tailwind
colors: {
  custom: {
    50: '#7a5fc3',
    500: '#2b1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2b1fa7;
$custom-light: #7a5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1fa7",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 245.294,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37122,
    "c": 0.20158,
    "h": 274.3
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#2B1FA7
secondary
#BCC65C
accent
#EC3CDC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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