#2B218C#2B218C

#2B218C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.167 H 277.2°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#2B218C
RGBrgb(43, 33, 140)
HSLhsl(246, 62%, 34%)
HSVhsv(246, 76%, 55%)
CMYKcmyk(69.3%, 76.4%, 0%, 45.1%)
CIE-LABlab(21.92, 38.59, -57.33)
CIE-LCHlch(21.92, 69.11, 303.95°)
OKLaboklab(34.37% 0.0208 -0.1656)
OKLCHoklch(34.37% 0.167 277.2)
XYZxyz(6.2722, 3.4942, 25.1498)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B218C #828C21
analogous
#214D8C #2B218C #61218C
triadic
#2B218C #8C2B21 #218C2B
tetradic
#2B218C #8C214D #828C21 #218C61
square
#2B218C #8C214D #828C21 #218C61
split-complementary
#2B218C #8C6121 #4D8C21
monochromatic
#0D0A29 #1C155A #2B218C #3A2DBE #5E51D6

Accessibility & contrast

On white

12.36
#2B218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2B218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B218C
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B218C#FFFFFF#000000##FFFFFF
##2B218C1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b218c;
/* rgb */ color: rgb(43, 33, 140);
/* oklch */ color: oklch(34.4% 0.167 277.2);
Tailwind
colors: {
  custom: {
    50: '#735eaf',
    500: '#2b218c',
    950: '#000000',
  },
}
SCSS
$custom: #2b218c;
$custom-light: #735eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b218c",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 245.607,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34368,
    "c": 0.16693,
    "h": 277.2
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#2B218C
secondary
#B0B94F
accent
#E543D6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B218C

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

Preview Lab → · Contrast checker → · Palette generator →

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