#2D137F#2D137F

#2D137F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.164 H 282.6°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#2D137F
RGBrgb(45, 19, 127)
HSLhsl(254, 74%, 29%)
HSVhsv(254, 85%, 50%)
CMYKcmyk(64.6%, 85%, 0%, 50.2%)
CIE-LABlab(18.17, 41.86, -55.34)
CIE-LCHlch(18.17, 69.39, 307.10°)
OKLaboklab(31.36% 0.0356 -0.1596)
OKLCHoklch(31.36% 0.164 282.6)
XYZxyz(5.1446, 2.5556, 20.2967)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D137F #657F13
analogous
#132F7F #2D137F #63137F
triadic
#2D137F #7F2D13 #137F2D
tetradic
#2D137F #7F132F #657F13 #137F63
square
#2D137F #7F132F #657F13 #137F63
split-complementary
#2D137F #7F6313 #2F7F13
monochromatic
#09041B #1A0B4A #2D137F #401BB4 #582DE0

Accessibility & contrast

On white

13.90
#2D137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D137F
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D137F#FFFFFF#000000##FFFFFF
##2D137F1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d137f;
/* rgb */ color: rgb(45, 19, 127);
/* oklch */ color: oklch(31.4% 0.164 282.6);
Tailwind
colors: {
  custom: {
    50: '#7256a5',
    500: '#2d137f',
    950: '#000000',
  },
}
SCSS
$custom: #2d137f;
$custom-light: #7256a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d137f",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 254.444,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31363,
    "c": 0.16354,
    "h": 282.6
  },
  "luminance": 0.02556
}

Semantic roles & 50–950 ramp

primary
#2D137F
secondary
#97B439
accent
#F137C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D137F

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

Preview Lab → · Contrast checker → · Palette generator →

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