#2D137C#2D137C

#2D137C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.160 H 283.3°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#2D137C
RGBrgb(45, 19, 124)
HSLhsl(255, 73%, 28%)
HSVhsv(255, 85%, 49%)
CMYKcmyk(63.7%, 84.7%, 0%, 51.4%)
CIE-LABlab(17.82, 40.97, -54.00)
CIE-LCHlch(17.82, 67.78, 307.18°)
OKLaboklab(31.02% 0.0367 -0.1557)
OKLCHoklch(31.02% 0.16 283.3)
XYZxyz(4.9520, 2.4785, 19.2823)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D137C #627C13
analogous
#132D7C #2D137C #61137C
triadic
#2D137C #7C2D13 #137C2D
tetradic
#2D137C #7C132D #627C13 #137C61
square
#2D137C #7C132D #627C13 #137C61
split-complementary
#2D137C #7C6113 #2D7C13
monochromatic
#0A041B #1A0B47 #2D137C #401BB1 #572BDF

Accessibility & contrast

On white

14.04
#2D137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2D137C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D137C
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D137C#FFFFFF#000000##FFFFFF
##2D137C1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d137c;
/* rgb */ color: rgb(45, 19, 124);
/* oklch */ color: oklch(31.0% 0.160 283.3);
Tailwind
colors: {
  custom: {
    50: '#7256a3',
    500: '#2d137c',
    950: '#000000',
  },
}
SCSS
$custom: #2d137c;
$custom-light: #7256a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d137c",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 254.857,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31021,
    "c": 0.15998,
    "h": 283.3
  },
  "luminance": 0.02479
}

Semantic roles & 50–950 ramp

primary
#2D137C
secondary
#94B239
accent
#F038C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D137C

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

Preview Lab → · Contrast checker → · Palette generator →

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