#2B2181#2B2181

#2B2181 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.153 H 278.7°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2B2181
RGBrgb(43, 33, 129)
HSLhsl(246, 59%, 32%)
HSVhsv(246, 74%, 51%)
CMYKcmyk(66.7%, 74.4%, 0%, 49.4%)
CIE-LABlab(20.77, 34.91, -52.32)
CIE-LCHlch(20.77, 62.89, 303.71°)
OKLaboklab(33.21% 0.0232 -0.151)
OKLCHoklch(33.21% 0.153 278.7)
XYZxyz(5.5013, 3.1858, 21.0896)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2181 #778121
analogous
#214781 #2B2181 #5B2181
triadic
#2B2181 #812B21 #21812B
tetradic
#2B2181 #812147 #778121 #21815B
square
#2B2181 #812147 #778121 #21815B
split-complementary
#2B2181 #815B21 #478121
monochromatic
#0B0820 #1B1550 #2B2181 #3B2DB2 #594BD1

Accessibility & contrast

On white

12.83
#2B2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2B2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2181
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2181#FFFFFF#000000##FFFFFF
##2B21811.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b2181;
/* rgb */ color: rgb(43, 33, 129);
/* oklch */ color: oklch(33.2% 0.153 278.7);
Tailwind
colors: {
  custom: {
    50: '#715ea7',
    500: '#2b2181',
    950: '#000000',
  },
}
SCSS
$custom: #2b2181;
$custom-light: #715ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2181",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 246.25,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33207,
    "c": 0.15278,
    "h": 278.7
  },
  "luminance": 0.03186
}

Semantic roles & 50–950 ramp

primary
#2B2181
secondary
#A9B44A
accent
#E245D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B2181

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

Preview Lab → · Contrast checker → · Palette generator →

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