#2D113F#2D113F

#2D113F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.086 H 309.5°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#2D113F
RGBrgb(45, 17, 63)
HSLhsl(277, 58%, 16%)
HSVhsv(277, 73%, 25%)
CMYKcmyk(28.6%, 73%, 0%, 75.3%)
CIE-LABlab(11.40, 23.96, -23.61)
CIE-LCHlch(11.40, 33.64, 315.41°)
OKLaboklab(24.66% 0.0549 -0.0667)
OKLCHoklch(24.66% 0.086 309.5)
XYZxyz(2.1797, 1.3177, 4.8412)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D113F #233F11
analogous
#16113F #2D113F #3F113A
triadic
#2D113F #3F2D11 #113F2D
tetradic
#2D113F #3F1611 #233F11 #113A3F
square
#2D113F #3F1611 #233F11 #113A3F
split-complementary
#2D113F #3A3F11 #113F16
monochromatic
#110718 #110718 #2D113F #4F1E6F #722B9F

Accessibility & contrast

On white

16.62
#2D113F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2D113F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D113F
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D113F#FFFFFF#000000##FFFFFF
##2D113F1.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#0A1F3E
Tritanopia (blue-blind)
#2A1A26
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d113f;
/* rgb */ color: rgb(45, 17, 63);
/* oklch */ color: oklch(24.7% 0.086 309.5);
Tailwind
colors: {
  custom: {
    50: '#685174',
    500: '#2d113f',
    950: '#000000',
  },
}
SCSS
$custom: #2d113f;
$custom-light: #685174;
$custom-dark: #000000;
JSON
{
  "hex": "#2d113f",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 63
  },
  "hsl": {
    "h": 276.522,
    "s": 57.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24659,
    "c": 0.08637,
    "h": 309.5
  },
  "luminance": 0.01318
}

Semantic roles & 50–950 ramp

primary
#2D113F
secondary
#4E7833
accent
#E14783
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D113F

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

Preview Lab → · Contrast checker → · Palette generator →

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