#2D1B94#2D1B94

#2D1B94 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.182 H 277.8°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2D1B94
RGBrgb(45, 27, 148)
HSLhsl(249, 69%, 34%)
HSVhsv(249, 82%, 58%)
CMYKcmyk(69.6%, 81.8%, 0%, 42%)
CIE-LABlab(21.87, 44.52, -62.38)
CIE-LCHlch(21.87, 76.64, 305.51°)
OKLaboklab(34.63% 0.0248 -0.1802)
OKLCHoklch(34.63% 0.182 277.8)
XYZxyz(6.8177, 3.4793, 28.3235)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B94 #82941B
analogous
#1B4594 #2D1B94 #6A1B94
triadic
#2D1B94 #942D1B #1B942D
tetradic
#2D1B94 #941B45 #82941B #1B946A
square
#2D1B94 #941B45 #82941B #1B946A
split-complementary
#2D1B94 #946A1B #45941B
monochromatic
#0E082C #1D1260 #2D1B94 #3D24C8 #614BDE

Accessibility & contrast

On white

12.38
#2D1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1B94
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B94#FFFFFF#000000##FFFFFF
##2D1B941.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d1b94;
/* rgb */ color: rgb(45, 27, 148);
/* oklch */ color: oklch(34.6% 0.182 277.8);
Tailwind
colors: {
  custom: {
    50: '#765bb5',
    500: '#2d1b94',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b94;
$custom-light: #765bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b94",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 248.926,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34633,
    "c": 0.18191,
    "h": 277.8
  },
  "luminance": 0.0348
}

Semantic roles & 50–950 ramp

primary
#2D1B94
secondary
#AFC04B
accent
#EC3CD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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