#2D138D#2D138D

#2D138D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 33.0% C 0.180 H 279.8°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#2D138D
RGBrgb(45, 19, 141)
HSLhsl(253, 76%, 31%)
HSVhsv(253, 87%, 55%)
CMYKcmyk(68.1%, 86.5%, 0%, 44.7%)
CIE-LABlab(19.83, 45.99, -61.41)
CIE-LCHlch(19.83, 76.72, 306.83°)
OKLaboklab(32.99% 0.0305 -0.1773)
OKLCHoklch(32.99% 0.18 279.8)
XYZxyz(6.1212, 2.9462, 25.4402)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D138D #738D13
analogous
#13368D #2D138D #6A138D
triadic
#2D138D #8D2D13 #138D2D
tetradic
#2D138D #8D1336 #738D13 #138D6A
square
#2D138D #8D1336 #738D13 #138D6A
split-complementary
#2D138D #8D6A13 #368D13
monochromatic
#0B0421 #1C0C57 #2D138D #3E1AC3 #5B36E4

Accessibility & contrast

On white

13.21
#2D138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D138D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D138D
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D138D#FFFFFF#000000##FFFFFF
##2D138D1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#002B8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d138d;
/* rgb */ color: rgb(45, 19, 141);
/* oklch */ color: oklch(33.0% 0.180 279.8);
Tailwind
colors: {
  custom: {
    50: '#7557b0',
    500: '#2d138d',
    950: '#000000',
  },
}
SCSS
$custom: #2d138d;
$custom-light: #7557b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d138d",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 252.787,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32986,
    "c": 0.17989,
    "h": 279.8
  },
  "luminance": 0.02947
}

Semantic roles & 50–950 ramp

primary
#2D138D
secondary
#A4C13B
accent
#F335CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2D138D

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

Preview Lab → · Contrast checker → · Palette generator →

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