#2D135E#2D135E

#2D135E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.123 H 292.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#2D135E
RGBrgb(45, 19, 94)
HSLhsl(261, 66%, 22%)
HSVhsv(261, 80%, 37%)
CMYKcmyk(52.1%, 79.8%, 0%, 63.1%)
CIE-LABlab(14.58, 31.89, -39.76)
CIE-LCHlch(14.58, 50.97, 308.73°)
OKLaboklab(27.79% 0.0466 -0.1141)
OKLCHoklch(27.79% 0.123 292.2)
XYZxyz(3.3349, 1.8317, 10.7653)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D135E #445E13
analogous
#131F5E #2D135E #53135E
triadic
#2D135E #5E2D13 #135E2D
tetradic
#2D135E #5E131F #445E13 #135E53
square
#2D135E #5E131F #445E13 #135E53
split-complementary
#2D135E #5E5313 #1F5E13
monochromatic
#0C0519 #15092B #2D135E #451D91 #5E28C4

Accessibility & contrast

On white

15.37
#2D135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2D135E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D135E
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D135E#FFFFFF#000000##FFFFFF
##2D135E1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#1D2737
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d135e;
/* rgb */ color: rgb(45, 19, 94);
/* oklch */ color: oklch(27.8% 0.123 292.2);
Tailwind
colors: {
  custom: {
    50: '#6c548c',
    500: '#2d135e',
    950: '#000000',
  },
}
SCSS
$custom: #2d135e;
$custom-light: #6c548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d135e",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 260.8,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2779,
    "c": 0.12325,
    "h": 292.2
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#2D135E
secondary
#759637
accent
#E93FAE
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D135E

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

Preview Lab → · Contrast checker → · Palette generator →

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