#2B208B#2B208B

#2B208B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.167 H 277.5°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#2B208B
RGBrgb(43, 32, 139)
HSLhsl(246, 63%, 34%)
HSVhsv(246, 77%, 55%)
CMYKcmyk(69.1%, 77%, 0%, 45.5%)
CIE-LABlab(21.62, 38.82, -57.21)
CIE-LCHlch(21.62, 69.14, 304.16°)
OKLaboklab(34.12% 0.0216 -0.1653)
OKLCHoklch(34.12% 0.167 277.5)
XYZxyz(6.1715, 3.4102, 24.7541)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B208B #808B20
analogous
#204A8B #2B208B #60208B
triadic
#2B208B #8B2B20 #208B2B
tetradic
#2B208B #8B204A #808B20 #208B60
square
#2B208B #8B204A #808B20 #208B60
split-complementary
#2B208B #8B6020 #4A8B20
monochromatic
#0C0928 #1C1559 #2B208B #3A2BBD #5D4FD6

Accessibility & contrast

On white

12.48
#2B208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2B208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B208B
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B208B#FFFFFF#000000##FFFFFF
##2B208B1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b208b;
/* rgb */ color: rgb(43, 32, 139);
/* oklch */ color: oklch(34.1% 0.167 277.5);
Tailwind
colors: {
  custom: {
    50: '#735eae',
    500: '#2b208b',
    950: '#000000',
  },
}
SCSS
$custom: #2b208b;
$custom-light: #735eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b208b",
  "rgb": {
    "r": 43,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 246.168,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34119,
    "c": 0.16669,
    "h": 277.5
  },
  "luminance": 0.03411
}

Semantic roles & 50–950 ramp

primary
#2B208B
secondary
#AEBA4D
accent
#E642D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B208B

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

Preview Lab → · Contrast checker → · Palette generator →

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