#2D137B#2D137B

#2D137B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.159 H 283.5°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#2D137B
RGBrgb(45, 19, 123)
HSLhsl(255, 73%, 28%)
HSVhsv(255, 85%, 48%)
CMYKcmyk(63.4%, 84.6%, 0%, 51.8%)
CIE-LABlab(17.71, 40.66, -53.55)
CIE-LCHlch(17.71, 67.24, 307.21°)
OKLaboklab(30.91% 0.037 -0.1544)
OKLCHoklch(30.91% 0.159 283.5)
XYZxyz(4.8891, 2.4534, 18.9510)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D137B #617B13
analogous
#132D7B #2D137B #61137B
triadic
#2D137B #7B2D13 #137B2D
tetradic
#2D137B #7B132D #617B13 #137B61
square
#2D137B #7B132D #617B13 #137B61
split-complementary
#2D137B #7B6113 #2D7B13
monochromatic
#0A041B #1A0B46 #2D137B #401BB0 #572ADE

Accessibility & contrast

On white

14.09
#2D137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D137B
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D137B#FFFFFF#000000##FFFFFF
##2D137B1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d137b;
/* rgb */ color: rgb(45, 19, 123);
/* oklch */ color: oklch(30.9% 0.159 283.5);
Tailwind
colors: {
  custom: {
    50: '#7256a2',
    500: '#2d137b',
    950: '#000000',
  },
}
SCSS
$custom: #2d137b;
$custom-light: #7256a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d137b",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 255,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30908,
    "c": 0.15879,
    "h": 283.5
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#2D137B
secondary
#93B139
accent
#F038C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D137B

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

Preview Lab → · Contrast checker → · Palette generator →

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