#2D219C#2D219C

#2D219C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.186 H 276.1°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#2D219C
RGBrgb(45, 33, 156)
HSLhsl(246, 65%, 37%)
HSVhsv(246, 79%, 61%)
CMYKcmyk(71.2%, 78.8%, 0%, 38.8%)
CIE-LABlab(23.82, 44.00, -64.07)
CIE-LCHlch(23.82, 77.73, 304.48°)
OKLaboklab(36.26% 0.0197 -0.1852)
OKLCHoklch(36.26% 0.186 276.1)
XYZxyz(7.6248, 4.0452, 31.8250)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D219C #909C21
analogous
#21529C #2D219C #6B219C
triadic
#2D219C #9C2D21 #219C2D
tetradic
#2D219C #9C2152 #909C21 #219C6B
square
#2D219C #9C2152 #909C21 #219C6B
split-complementary
#2D219C #9C6B21 #529C21
monochromatic
#100C37 #1E1669 #2D219C #3C2CCF #685BDC

Accessibility & contrast

On white

11.61
#2D219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2D219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D219C
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D219C#FFFFFF#000000##FFFFFF
##2D219C1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d219c;
/* rgb */ color: rgb(45, 33, 156);
/* oklch */ color: oklch(36.3% 0.186 276.1);
Tailwind
colors: {
  custom: {
    50: '#785fba',
    500: '#2d219c',
    950: '#000000',
  },
}
SCSS
$custom: #2d219c;
$custom-light: #785fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d219c",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 245.854,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36259,
    "c": 0.18627,
    "h": 276.1
  },
  "luminance": 0.04046
}

Semantic roles & 50–950 ramp

primary
#2D219C
secondary
#B6C158
accent
#E840D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D219C

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

Preview Lab → · Contrast checker → · Palette generator →

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