#2B2082#2B2082

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

Color values

HEX#2B2082
RGBrgb(43, 32, 130)
HSLhsl(247, 60%, 32%)
HSVhsv(247, 75%, 51%)
CMYKcmyk(66.9%, 75.4%, 0%, 49%)
CIE-LABlab(20.67, 35.83, -53.12)
CIE-LCHlch(20.67, 64.08, 304.00°)
OKLaboklab(33.16% 0.0237 -0.1534)
OKLCHoklch(33.16% 0.155 278.8)
XYZxyz(5.5407, 3.1579, 21.4323)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2082 #778220
analogous
#204682 #2B2082 #5C2082
triadic
#2B2082 #822B20 #20822B
tetradic
#2B2082 #822046 #778220 #20825C
square
#2B2082 #822046 #778220 #20825C
split-complementary
#2B2082 #825C20 #468220
monochromatic
#0B0820 #1B1451 #2B2082 #3B2CB3 #594AD2

Accessibility & contrast

On white

12.87
#2B2082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B2082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2082
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2082#FFFFFF#000000##FFFFFF
##2B20821.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.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: #2b2082;
/* rgb */ color: rgb(43, 32, 130);
/* oklch */ color: oklch(33.2% 0.155 278.8);
Tailwind
colors: {
  custom: {
    50: '#715da7',
    500: '#2b2082',
    950: '#000000',
  },
}
SCSS
$custom: #2b2082;
$custom-light: #715da7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2082",
  "rgb": {
    "r": 43,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 246.735,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33161,
    "c": 0.15519,
    "h": 278.8
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#2B2082
secondary
#A9B549
accent
#E444D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B2082

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

Preview Lab → · Contrast checker → · Palette generator →

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