#2D135B#2D135B

#2D135B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.119 H 293.4°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#2D135B
RGBrgb(45, 19, 91)
HSLhsl(262, 65%, 22%)
HSVhsv(262, 79%, 36%)
CMYKcmyk(50.5%, 79.1%, 0%, 64.3%)
CIE-LABlab(14.28, 30.98, -38.24)
CIE-LCHlch(14.28, 49.21, 309.01°)
OKLaboklab(27.49% 0.0474 -0.1096)
OKLCHoklch(27.49% 0.119 293.4)
XYZxyz(3.2029, 1.7789, 10.0701)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D135B #415B13
analogous
#131D5B #2D135B #51135B
triadic
#2D135B #5B2D13 #135B2D
tetradic
#2D135B #5B131D #415B13 #135B51
square
#2D135B #5B131D #415B13 #135B51
split-complementary
#2D135B #5B5113 #1D5B13
monochromatic
#0D0519 #140828 #2D135B #461E8E #5F28C0

Accessibility & contrast

On white

15.49
#2D135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2D135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D135B
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D135B#FFFFFF#000000##FFFFFF
##2D135B1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#1F2636
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d135b;
/* rgb */ color: rgb(45, 19, 91);
/* oklch */ color: oklch(27.5% 0.119 293.4);
Tailwind
colors: {
  custom: {
    50: '#6b538a',
    500: '#2d135b',
    950: '#000000',
  },
}
SCSS
$custom: #2d135b;
$custom-light: #6b538a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d135b",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 261.667,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2749,
    "c": 0.11945,
    "h": 293.4
  },
  "luminance": 0.01779
}

Semantic roles & 50–950 ramp

primary
#2D135B
secondary
#729337
accent
#E83FAB
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D135B

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

Preview Lab → · Contrast checker → · Palette generator →

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