#2B1F81#2B1F81

#2B1F81 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.155 H 279.1°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2B1F81
RGBrgb(43, 31, 129)
HSLhsl(247, 61%, 31%)
HSVhsv(247, 76%, 51%)
CMYKcmyk(66.7%, 76%, 0%, 49.4%)
CIE-LABlab(20.35, 36.08, -53.01)
CIE-LCHlch(20.35, 64.12, 304.24°)
OKLaboklab(32.91% 0.0246 -0.153)
OKLCHoklch(32.91% 0.155 279.1)
XYZxyz(5.4474, 3.0781, 21.0717)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F81 #75811F
analogous
#1F4481 #2B1F81 #5C1F81
triadic
#2B1F81 #812B1F #1F812B
tetradic
#2B1F81 #811F44 #75811F #1F815C
square
#2B1F81 #811F44 #75811F #1F815C
split-complementary
#2B1F81 #815C1F #44811F
monochromatic
#0A071E #1B1350 #2B1F81 #3B2BB2 #5947D3

Accessibility & contrast

On white

13.00
#2B1F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B1F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F81
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F81#FFFFFF#000000##FFFFFF
##2B1F811.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b1f81;
/* rgb */ color: rgb(43, 31, 129);
/* oklch */ color: oklch(32.9% 0.155 279.1);
Tailwind
colors: {
  custom: {
    50: '#715ca7',
    500: '#2b1f81',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f81;
$custom-light: #715ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f81",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 247.347,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32909,
    "c": 0.15497,
    "h": 279.1
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#2B1F81
secondary
#A7B448
accent
#E443D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B1F81

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

Preview Lab → · Contrast checker → · Palette generator →

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