#2B1FB3#2B1FB3

#2B1FB3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.5% C 0.215 H 273.2°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#2B1FB3
RGBrgb(43, 31, 179)
HSLhsl(245, 70%, 41%)
HSVhsv(245, 83%, 70%)
CMYKcmyk(76%, 82.7%, 0%, 29.8%)
CIE-LABlab(26.00, 51.97, -74.37)
CIE-LCHlch(26.00, 90.73, 304.95°)
OKLaboklab(38.51% 0.0119 -0.2151)
OKLCHoklch(38.51% 0.215 273.2)
XYZxyz(9.6202, 4.7472, 43.0484)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1FB3 #A7B31F
analogous
#1F5DB3 #2B1FB3 #751FB3
triadic
#2B1FB3 #B32B1F #1FB32B
tetradic
#2B1FB3 #B31F5D #A7B31F #1FB375
square
#2B1FB3 #B31F5D #A7B31F #1FB375
split-complementary
#2B1FB3 #B3751F #5DB31F
monochromatic
#120D4B #1E167F #2B1FB3 #4133DC #7268E5

Accessibility & contrast

On white

10.77
#2B1FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2B1FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1FB3
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1FB3#FFFFFF#000000##FFFFFF
##2B1FB31.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b1fb3;
/* rgb */ color: rgb(43, 31, 179);
/* oklch */ color: oklch(38.5% 0.215 273.2);
Tailwind
colors: {
  custom: {
    50: '#7c60cb',
    500: '#2b1fb3',
    950: '#000000',
  },
}
SCSS
$custom: #2b1fb3;
$custom-light: #7c60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1fb3",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 244.865,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38513,
    "c": 0.21546,
    "h": 273.2
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#2B1FB3
secondary
#C2CA64
accent
#ED3BDF
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2B1FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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