#2D0F3F#2D0F3F

#2D0F3F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.090 H 310.1°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#2D0F3F
RGBrgb(45, 15, 63)
HSLhsl(278, 62%, 15%)
HSVhsv(278, 76%, 25%)
CMYKcmyk(28.6%, 76.2%, 0%, 75.3%)
CIE-LABlab(10.98, 25.10, -24.28)
CIE-LCHlch(10.98, 34.93, 315.95°)
OKLaboklab(24.36% 0.0577 -0.0686)
OKLCHoklch(24.36% 0.09 310.1)
XYZxyz(2.1500, 1.2585, 4.8313)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F3F #213F0F
analogous
#150F3F #2D0F3F #3F0F39
triadic
#2D0F3F #3F2D0F #0F3F2D
tetradic
#2D0F3F #3F150F #213F0F #0F393F
square
#2D0F3F #3F150F #213F0F #0F393F
split-complementary
#2D0F3F #393F0F #0F3F15
monochromatic
#120619 #120619 #2D0F3F #501B70 #7427A2

Accessibility & contrast

On white

16.78
#2D0F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2D0F3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0F3F
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F3F#FFFFFF#000000##FFFFFF
##2D0F3F1.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#081E3E
Tritanopia (blue-blind)
#2B1925
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2d0f3f;
/* rgb */ color: rgb(45, 15, 63);
/* oklch */ color: oklch(24.4% 0.090 310.1);
Tailwind
colors: {
  custom: {
    50: '#685074',
    500: '#2d0f3f',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f3f;
$custom-light: #685074;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f3f",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 277.5,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24359,
    "c": 0.08965,
    "h": 310.1
  },
  "luminance": 0.01258
}

Semantic roles & 50–950 ramp

primary
#2D0F3F
secondary
#4C7930
accent
#E54380
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D0F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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