#2D138A#2D138A

#2D138A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.176 H 280.3°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#2D138A
RGBrgb(45, 19, 138)
HSLhsl(253, 76%, 31%)
HSVhsv(253, 86%, 54%)
CMYKcmyk(67.4%, 86.2%, 0%, 45.9%)
CIE-LABlab(19.47, 45.11, -60.13)
CIE-LCHlch(19.47, 75.17, 306.88°)
OKLaboklab(32.63% 0.0316 -0.1736)
OKLCHoklch(32.63% 0.176 280.3)
XYZxyz(5.9010, 2.8581, 24.2805)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D138A #708A13
analogous
#13358A #2D138A #68138A
triadic
#2D138A #8A2D13 #138A2D
tetradic
#2D138A #8A1335 #708A13 #138A68
square
#2D138A #8A1335 #708A13 #138A68
split-complementary
#2D138A #8A6813 #358A13
monochromatic
#0A041E #1B0C54 #2D138A #3F1AC0 #5A34E3

Accessibility & contrast

On white

13.36
#2D138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D138A
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D138A#FFFFFF#000000##FFFFFF
##2D138A1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003951
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d138a;
/* rgb */ color: rgb(45, 19, 138);
/* oklch */ color: oklch(32.6% 0.176 280.3);
Tailwind
colors: {
  custom: {
    50: '#7557ad',
    500: '#2d138a',
    950: '#000000',
  },
}
SCSS
$custom: #2d138a;
$custom-light: #7557ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d138a",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 253.109,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32634,
    "c": 0.17642,
    "h": 280.3
  },
  "luminance": 0.02859
}

Semantic roles & 50–950 ramp

primary
#2D138A
secondary
#A2BE3A
accent
#F235C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2D138A

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

Preview Lab → · Contrast checker → · Palette generator →

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