#2D1B6E#2D1B6E

#2D1B6E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.5% C 0.134 H 285.2°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2D1B6E
RGBrgb(45, 27, 110)
HSLhsl(253, 61%, 27%)
HSVhsv(253, 75%, 43%)
CMYKcmyk(59.1%, 75.5%, 0%, 56.9%)
CIE-LABlab(17.77, 32.43, -45.07)
CIE-LCHlch(17.77, 55.52, 305.74°)
OKLaboklab(30.54% 0.0352 -0.1297)
OKLCHoklch(30.54% 0.134 285.2)
XYZxyz(4.2877, 2.4673, 14.9991)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B6E #5C6E1B
analogous
#1B336E #2D1B6E #571B6E
triadic
#2D1B6E #6E2D1B #1B6E2D
tetradic
#2D1B6E #6E1B33 #5C6E1B #1B6E57
square
#2D1B6E #6E1B33 #5C6E1B #1B6E57
split-complementary
#2D1B6E #6E571B #336E1B
monochromatic
#0A0619 #190F3D #2D1B6E #41279F #5736CE

Accessibility & contrast

On white

14.06
#2D1B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D1B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B6E
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B6E#FFFFFF#000000##FFFFFF
##2D1B6E1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#0E3142
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1b6e;
/* rgb */ color: rgb(45, 27, 110);
/* oklch */ color: oklch(30.5% 0.134 285.2);
Tailwind
colors: {
  custom: {
    50: '#6e5998',
    500: '#2d1b6e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b6e;
$custom-light: #6e5998;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b6e",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 253.012,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30535,
    "c": 0.13439,
    "h": 285.2
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#2D1B6E
secondary
#8EA342
accent
#E444C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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