#2D094E#2D094E

#2D094E is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.115 H 301.9°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#2D094E
RGBrgb(45, 9, 78)
HSLhsl(271, 79%, 17%)
HSVhsv(271, 88%, 31%)
CMYKcmyk(42.3%, 88.5%, 0%, 69.4%)
CIE-LABlab(11.30, 32.11, -34.27)
CIE-LCHlch(11.30, 46.96, 313.14°)
OKLaboklab(25.01% 0.0609 -0.0979)
OKLCHoklch(25.01% 0.115 301.9)
XYZxyz(2.5547, 1.3033, 7.3232)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D094E #2A4E09
analogous
#0A094E #2D094E #4E094D
triadic
#2D094E #4E2D09 #094E2D
tetradic
#2D094E #4E0A09 #2A4E09 #094D4E
square
#2D094E #4E0A09 #2A4E09 #094D4E
split-complementary
#2D094E #4D4E09 #094E0A
monochromatic
#10031B #10031B #2D094E #4D0F85 #6C16BC

Accessibility & contrast

On white

16.66
#2D094E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D094E
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D094E#FFFFFF#000000##FFFFFF
##2D094E1.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E50
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#261C2C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d094e;
/* rgb */ color: rgb(45, 9, 78);
/* oklch */ color: oklch(25.0% 0.115 301.9);
Tailwind
colors: {
  custom: {
    50: '#6a4e80',
    500: '#2d094e',
    950: '#000000',
  },
}
SCSS
$custom: #2d094e;
$custom-light: #6a4e80;
$custom-dark: #000000;
JSON
{
  "hex": "#2d094e",
  "rgb": {
    "r": 45,
    "g": 9,
    "b": 78
  },
  "hsl": {
    "h": 271.304,
    "s": 79.31,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25005,
    "c": 0.11527,
    "h": 301.9
  },
  "luminance": 0.01303
}

Semantic roles & 50–950 ramp

primary
#2D094E
secondary
#578B28
accent
#F63290
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D094E

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

Preview Lab → · Contrast checker → · Palette generator →

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