#2B1F9E#2B1F9E

#2B1F9E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.191 H 275.2°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#2B1F9E
RGBrgb(43, 31, 158)
HSLhsl(246, 67%, 37%)
HSVhsv(246, 80%, 62%)
CMYKcmyk(72.8%, 80.4%, 0%, 38%)
CIE-LABlab(23.54, 45.49, -65.76)
CIE-LCHlch(23.54, 79.96, 304.67°)
OKLaboklab(36.09% 0.0174 -0.1901)
OKLCHoklch(36.09% 0.191 275.2)
XYZxyz(7.6558, 3.9614, 32.7023)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F9E #929E1F
analogous
#1F539E #2B1F9E #6A1F9E
triadic
#2B1F9E #9E2B1F #1F9E2B
tetradic
#2B1F9E #9E1F53 #929E1F #1F9E6A
square
#2B1F9E #9E1F53 #929E1F #1F9E6A
split-complementary
#2B1F9E #9E6A1F #539E1F
monochromatic
#0F0B38 #1D156B #2B1F9E #3929D1 #6659DE

Accessibility & contrast

On white

11.72
#2B1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2B1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F9E
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F9E#FFFFFF#000000##FFFFFF
##2B1F9E1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b1f9e;
/* rgb */ color: rgb(43, 31, 158);
/* oklch */ color: oklch(36.1% 0.191 275.2);
Tailwind
colors: {
  custom: {
    50: '#775ebc',
    500: '#2b1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f9e;
$custom-light: #775ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f9e",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 245.669,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36094,
    "c": 0.19093,
    "h": 275.2
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#2B1F9E
secondary
#B8C256
accent
#EA3EDA
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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