#2B208C#2B208C

#2B208C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.168 H 277.3°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#2B208C
RGBrgb(43, 32, 140)
HSLhsl(246, 63%, 34%)
HSVhsv(246, 77%, 55%)
CMYKcmyk(69.3%, 77.1%, 0%, 45.1%)
CIE-LABlab(21.72, 39.15, -57.66)
CIE-LCHlch(21.72, 69.69, 304.18°)
OKLaboklab(34.23% 0.0214 -0.1666)
OKLCHoklch(34.23% 0.168 277.3)
XYZxyz(6.2449, 3.4395, 25.1407)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B208C #818C20
analogous
#204B8C #2B208C #61208C
triadic
#2B208C #8C2B20 #208C2B
tetradic
#2B208C #8C204B #818C20 #208C61
square
#2B208C #8C204B #818C20 #208C61
split-complementary
#2B208C #8C6120 #4B8C20
monochromatic
#0C0928 #1C155A #2B208C #3A2BBE #5D50D7

Accessibility & contrast

On white

12.44
#2B208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2B208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B208C
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B208C#FFFFFF#000000##FFFFFF
##2B208C1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b208c;
/* rgb */ color: rgb(43, 32, 140);
/* oklch */ color: oklch(34.2% 0.168 277.3);
Tailwind
colors: {
  custom: {
    50: '#735eaf',
    500: '#2b208c',
    950: '#000000',
  },
}
SCSS
$custom: #2b208c;
$custom-light: #735eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b208c",
  "rgb": {
    "r": 43,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 246.111,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34227,
    "c": 0.16795,
    "h": 277.3
  },
  "luminance": 0.0344
}

Semantic roles & 50–950 ramp

primary
#2B208C
secondary
#AFBA4E
accent
#E642D5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B208C

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

Preview Lab → · Contrast checker → · Palette generator →

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