#2B2182#2B2182

#2B2182 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.154 H 278.6°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2B2182
RGBrgb(43, 33, 130)
HSLhsl(246, 60%, 32%)
HSVhsv(246, 75%, 51%)
CMYKcmyk(66.9%, 74.6%, 0%, 49%)
CIE-LABlab(20.88, 35.24, -52.78)
CIE-LCHlch(20.88, 63.46, 303.73°)
OKLaboklab(33.31% 0.023 -0.1524)
OKLCHoklch(33.31% 0.154 278.6)
XYZxyz(5.5681, 3.2126, 21.4414)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2182 #788221
analogous
#214782 #2B2182 #5C2182
triadic
#2B2182 #822B21 #21822B
tetradic
#2B2182 #822147 #788221 #21825C
square
#2B2182 #822147 #788221 #21825C
split-complementary
#2B2182 #825C21 #478221
monochromatic
#0B0820 #1B1551 #2B2182 #3B2DB3 #5A4CD2

Accessibility & contrast

On white

12.78
#2B2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2182
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2182#FFFFFF#000000##FFFFFF
##2B21821.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2182;
/* rgb */ color: rgb(43, 33, 130);
/* oklch */ color: oklch(33.3% 0.154 278.6);
Tailwind
colors: {
  custom: {
    50: '#715ea7',
    500: '#2b2182',
    950: '#000000',
  },
}
SCSS
$custom: #2b2182;
$custom-light: #715ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2182",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 246.186,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3331,
    "c": 0.15408,
    "h": 278.6
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#2B2182
secondary
#AAB44A
accent
#E345D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B2182

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

Preview Lab → · Contrast checker → · Palette generator →

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