#2D137E#2D137E

#2D137E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.162 H 282.8°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#2D137E
RGBrgb(45, 19, 126)
HSLhsl(255, 74%, 28%)
HSVhsv(255, 85%, 49%)
CMYKcmyk(64.3%, 84.9%, 0%, 50.6%)
CIE-LABlab(18.05, 41.56, -54.89)
CIE-LCHlch(18.05, 68.85, 307.13°)
OKLaboklab(31.25% 0.036 -0.1583)
OKLCHoklch(31.25% 0.162 282.8)
XYZxyz(5.0798, 2.5296, 19.9552)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D137E #647E13
analogous
#132F7E #2D137E #62137E
triadic
#2D137E #7E2D13 #137E2D
tetradic
#2D137E #7E132F #647E13 #137E62
square
#2D137E #7E132F #647E13 #137E62
split-complementary
#2D137E #7E6213 #2F7E13
monochromatic
#09041B #1A0B49 #2D137E #401BB3 #582CDF

Accessibility & contrast

On white

13.94
#2D137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D137E
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D137E#FFFFFF#000000##FFFFFF
##2D137E1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d137e;
/* rgb */ color: rgb(45, 19, 126);
/* oklch */ color: oklch(31.2% 0.162 282.8);
Tailwind
colors: {
  custom: {
    50: '#7256a5',
    500: '#2d137e',
    950: '#000000',
  },
}
SCSS
$custom: #2d137e;
$custom-light: #7256a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d137e",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 254.579,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31249,
    "c": 0.16235,
    "h": 282.8
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#2D137E
secondary
#96B439
accent
#F037C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D137E

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

Preview Lab → · Contrast checker → · Palette generator →

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