#2D1A6E#2D1A6E

#2D1A6E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.136 H 285.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2D1A6E
RGBrgb(45, 26, 110)
HSLhsl(254, 62%, 27%)
HSVhsv(254, 76%, 43%)
CMYKcmyk(59.1%, 76.4%, 0%, 56.9%)
CIE-LABlab(17.56, 33.01, -45.41)
CIE-LCHlch(17.56, 56.14, 306.02°)
OKLaboklab(30.39% 0.036 -0.1307)
OKLCHoklch(30.39% 0.136 285.4)
XYZxyz(4.2652, 2.4222, 14.9916)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A6E #5B6E1A
analogous
#1A316E #2D1A6E #571A6E
triadic
#2D1A6E #6E2D1A #1A6E2D
tetradic
#2D1A6E #6E1A31 #5B6E1A #1A6E57
square
#2D1A6E #6E1A31 #5B6E1A #1A6E57
split-complementary
#2D1A6E #6E571A #316E1A
monochromatic
#0A0619 #190E3D #2D1A6E #4126A0 #5734CF

Accessibility & contrast

On white

14.15
#2D1A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2D1A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A6E
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A6E#FFFFFF#000000##FFFFFF
##2D1A6E1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#0E3142
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d1a6e;
/* rgb */ color: rgb(45, 26, 110);
/* oklch */ color: oklch(30.4% 0.136 285.4);
Tailwind
colors: {
  custom: {
    50: '#6e5998',
    500: '#2d1a6e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a6e;
$custom-light: #6e5998;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a6e",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 253.571,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30388,
    "c": 0.13558,
    "h": 285.4
  },
  "luminance": 0.02422
}

Semantic roles & 50–950 ramp

primary
#2D1A6E
secondary
#8DA341
accent
#E543C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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