#2B1F79#2B1F79

#2B1F79 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.145 H 280.5°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2B1F79
RGBrgb(43, 31, 121)
HSLhsl(248, 59%, 30%)
HSVhsv(248, 74%, 47%)
CMYKcmyk(64.5%, 74.4%, 0%, 52.5%)
CIE-LABlab(19.53, 33.40, -49.27)
CIE-LCHlch(19.53, 59.53, 304.13°)
OKLaboklab(32.07% 0.0264 -0.1421)
OKLCHoklch(32.07% 0.145 280.5)
XYZxyz(4.9363, 2.8737, 18.3800)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F79 #6D791F
analogous
#1F4079 #2B1F79 #581F79
triadic
#2B1F79 #792B1F #1F792B
tetradic
#2B1F79 #791F40 #6D791F #1F7958
square
#2B1F79 #791F40 #6D791F #1F7958
split-complementary
#2B1F79 #79581F #40791F
monochromatic
#090618 #1A1348 #2B1F79 #3C2BAA #5643CF

Accessibility & contrast

On white

13.34
#2B1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F79
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F79#FFFFFF#000000##FFFFFF
##2B1F791.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1f79;
/* rgb */ color: rgb(43, 31, 121);
/* oklch */ color: oklch(32.1% 0.145 280.5);
Tailwind
colors: {
  custom: {
    50: '#6f5ca1',
    500: '#2b1f79',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f79;
$custom-light: #6f5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f79",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 248,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32075,
    "c": 0.14452,
    "h": 280.5
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#2B1F79
secondary
#9FAC47
accent
#E245CD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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