#2D2381#2D2381

#2D2381 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.150 H 279.4°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#2D2381
RGBrgb(45, 35, 129)
HSLhsl(246, 57%, 32%)
HSVhsv(246, 73%, 51%)
CMYKcmyk(65.1%, 72.9%, 0%, 49.4%)
CIE-LABlab(21.37, 33.98, -51.32)
CIE-LCHlch(21.37, 61.55, 303.51°)
OKLaboklab(33.68% 0.0246 -0.148)
OKLCHoklch(33.68% 0.15 279.4)
XYZxyz(5.6444, 3.3445, 21.1127)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2381 #778123
analogous
#234881 #2D2381 #5C2381
triadic
#2D2381 #812D23 #23812D
tetradic
#2D2381 #812348 #778123 #23815C
square
#2D2381 #812348 #778123 #23815C
split-complementary
#2D2381 #815C23 #488123
monochromatic
#0B0921 #1C1651 #2D2381 #3E30B1 #5D4FCF

Accessibility & contrast

On white

12.58
#2D2381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D2381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2381
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2381#FFFFFF#000000##FFFFFF
##2D23811.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2381;
/* rgb */ color: rgb(45, 35, 129);
/* oklch */ color: oklch(33.7% 0.150 279.4);
Tailwind
colors: {
  custom: {
    50: '#715fa7',
    500: '#2d2381',
    950: '#000000',
  },
}
SCSS
$custom: #2d2381;
$custom-light: #715fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2381",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 246.383,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33677,
    "c": 0.15007,
    "h": 279.4
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#2D2381
secondary
#A8B34D
accent
#E147D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2D2381

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

Preview Lab → · Contrast checker → · Palette generator →

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