#2B215E#2B215E

#2B215E is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.8% C 0.104 H 285.7°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#2B215E
RGBrgb(43, 33, 94)
HSLhsl(250, 48%, 25%)
HSVhsv(250, 65%, 37%)
CMYKcmyk(54.3%, 64.9%, 0%, 63.1%)
CIE-LABlab(17.50, 22.88, -35.00)
CIE-LCHlch(17.50, 41.82, 303.17°)
OKLaboklab(29.84% 0.0282 -0.1002)
OKLCHoklch(29.84% 0.104 285.7)
XYZxyz(3.5599, 2.4093, 10.8650)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B215E #545E21
analogous
#21365E #2B215E #49215E
triadic
#2B215E #5E2B21 #215E2B
tetradic
#2B215E #5E2136 #545E21 #215E49
square
#2B215E #5E2136 #545E21 #215E49
split-complementary
#2B215E #5E4921 #365E21
monochromatic
#0A0817 #161131 #2B215E #40318B #5441B9

Accessibility & contrast

On white

14.17
#2B215E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B215E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B215E
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B215E#FFFFFF#000000##FFFFFF
##2B215E1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#182F3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b215e;
/* rgb */ color: rgb(43, 33, 94);
/* oklch */ color: oklch(29.8% 0.104 285.7);
Tailwind
colors: {
  custom: {
    50: '#695c8c',
    500: '#2b215e',
    950: '#000000',
  },
}
SCSS
$custom: #2b215e;
$custom-light: #695c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b215e",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 94
  },
  "hsl": {
    "h": 249.836,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29839,
    "c": 0.10412,
    "h": 285.7
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#2B215E
secondary
#869249
accent
#D850C1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2B215E

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

Preview Lab → · Contrast checker → · Palette generator →

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