#2D138F#2D138F

#2D138F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.182 H 279.4°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2D138F
RGBrgb(45, 19, 143)
HSLhsl(253, 77%, 32%)
HSVhsv(253, 87%, 56%)
CMYKcmyk(68.5%, 86.7%, 0%, 43.9%)
CIE-LABlab(20.07, 46.57, -62.26)
CIE-LCHlch(20.07, 77.75, 306.80°)
OKLaboklab(33.22% 0.0298 -0.1797)
OKLCHoklch(33.22% 0.182 279.4)
XYZxyz(6.2714, 3.0063, 26.2311)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D138F #758F13
analogous
#13378F #2D138F #6B138F
triadic
#2D138F #8F2D13 #138F2D
tetradic
#2D138F #8F1337 #758F13 #138F6B
square
#2D138F #8F1337 #758F13 #138F6B
split-complementary
#2D138F #8F6B13 #378F13
monochromatic
#0B0523 #1C0C59 #2D138F #3E1AC5 #5C38E5

Accessibility & contrast

On white

13.11
#2D138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2D138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D138F
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D138F#FFFFFF#000000##FFFFFF
##2D138F1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d138f;
/* rgb */ color: rgb(45, 19, 143);
/* oklch */ color: oklch(33.2% 0.182 279.4);
Tailwind
colors: {
  custom: {
    50: '#7657b1',
    500: '#2d138f',
    950: '#000000',
  },
}
SCSS
$custom: #2d138f;
$custom-light: #7657b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d138f",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 252.581,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33221,
    "c": 0.18219,
    "h": 279.4
  },
  "luminance": 0.03007
}

Semantic roles & 50–950 ramp

primary
#2D138F
secondary
#A6C33B
accent
#F335CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2D138F

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

Preview Lab → · Contrast checker → · Palette generator →

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