#2B1F9C#2B1F9C

#2B1F9C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.189 H 275.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2B1F9C
RGBrgb(43, 31, 156)
HSLhsl(246, 67%, 37%)
HSVhsv(246, 80%, 61%)
CMYKcmyk(72.4%, 80.1%, 0%, 38.8%)
CIE-LABlab(23.31, 44.86, -64.91)
CIE-LCHlch(23.31, 78.90, 304.64°)
OKLaboklab(35.87% 0.0179 -0.1877)
OKLCHoklch(35.87% 0.189 275.4)
XYZxyz(7.4850, 3.8931, 31.8030)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F9C #909C1F
analogous
#1F529C #2B1F9C #6A1F9C
triadic
#2B1F9C #9C2B1F #1F9C2B
tetradic
#2B1F9C #9C1F52 #909C1F #1F9C6A
square
#2B1F9C #9C1F52 #909C1F #1F9C6A
split-complementary
#2B1F9C #9C6A1F #529C1F
monochromatic
#0F0B36 #1D1569 #2B1F9C #3929CF #6558DE

Accessibility & contrast

On white

11.81
#2B1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2B1F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F9C
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F9C#FFFFFF#000000##FFFFFF
##2B1F9C1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b1f9c;
/* rgb */ color: rgb(43, 31, 156);
/* oklch */ color: oklch(35.9% 0.189 275.4);
Tailwind
colors: {
  custom: {
    50: '#775ebb',
    500: '#2b1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f9c;
$custom-light: #775ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f9c",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 245.76,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35868,
    "c": 0.18854,
    "h": 275.4
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#2B1F9C
secondary
#B7C155
accent
#EA3ED9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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