#2D134F#2D134F

#2D134F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.104 H 298.9°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#2D134F
RGBrgb(45, 19, 79)
HSLhsl(266, 61%, 19%)
HSVhsv(266, 76%, 31%)
CMYKcmyk(43%, 75.9%, 0%, 69%)
CIE-LABlab(13.16, 27.37, -31.93)
CIE-LCHlch(13.16, 42.05, 310.61°)
OKLaboklab(26.34% 0.0502 -0.0911)
OKLCHoklch(26.34% 0.104 298.9)
XYZxyz(2.7260, 1.5881, 7.5585)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D134F #354F13
analogous
#13174F #2D134F #4B134F
triadic
#2D134F #4F2D13 #134F2D
tetradic
#2D134F #4F1317 #354F13 #134F4B
square
#2D134F #4F1317 #354F13 #134F4B
split-complementary
#2D134F #4F4B13 #174F13
monochromatic
#0E0619 #11071E #2D134F #491F80 #652BB2

Accessibility & contrast

On white

15.94
#2D134F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2D134F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D134F
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D134F#FFFFFF#000000##FFFFFF
##2D134F1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#25212F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d134f;
/* rgb */ color: rgb(45, 19, 79);
/* oklch */ color: oklch(26.3% 0.104 298.9);
Tailwind
colors: {
  custom: {
    50: '#6a5381',
    500: '#2d134f',
    950: '#000000',
  },
}
SCSS
$custom: #2d134f;
$custom-light: #6a5381;
$custom-dark: #000000;
JSON
{
  "hex": "#2d134f",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 79
  },
  "hsl": {
    "h": 266,
    "s": 61.224,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26344,
    "c": 0.10401,
    "h": 298.9
  },
  "luminance": 0.01588
}

Semantic roles & 50–950 ramp

primary
#2D134F
secondary
#648836
accent
#E4439F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D134F

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

Preview Lab → · Contrast checker → · Palette generator →

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