#2B1F9A#2B1F9A

#2B1F9A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.186 H 275.7°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2B1F9A
RGBrgb(43, 31, 154)
HSLhsl(246, 66%, 36%)
HSVhsv(246, 80%, 60%)
CMYKcmyk(72.1%, 79.9%, 0%, 39.6%)
CIE-LABlab(23.09, 44.22, -64.06)
CIE-LCHlch(23.09, 77.84, 304.62°)
OKLaboklab(35.64% 0.0184 -0.1852)
OKLCHoklch(35.64% 0.186 275.7)
XYZxyz(7.3171, 3.8260, 30.9185)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F9A #8E9A1F
analogous
#1F519A #2B1F9A #691F9A
triadic
#2B1F9A #9A2B1F #1F9A2B
tetradic
#2B1F9A #9A1F51 #8E9A1F #1F9A69
square
#2B1F9A #9A1F51 #8E9A1F #1F9A69
split-complementary
#2B1F9A #9A691F #519A1F
monochromatic
#0F0A34 #1D1567 #2B1F9A #3929CD #6356DD

Accessibility & contrast

On white

11.90
#2B1F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2B1F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F9A
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F9A#FFFFFF#000000##FFFFFF
##2B1F9A1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b1f9a;
/* rgb */ color: rgb(43, 31, 154);
/* oklch */ color: oklch(35.6% 0.186 275.7);
Tailwind
colors: {
  custom: {
    50: '#775eb9',
    500: '#2b1f9a',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f9a;
$custom-light: #775eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f9a",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 245.854,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35642,
    "c": 0.18613,
    "h": 275.7
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#2B1F9A
secondary
#B6C154
accent
#E93ED9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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