#2D074E#2D074E

#2D074E is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.117 H 302.3°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#2D074E
RGBrgb(45, 7, 78)
HSLhsl(272, 84%, 17%)
HSVhsv(272, 91%, 31%)
CMYKcmyk(42.3%, 91%, 0%, 69.4%)
CIE-LABlab(10.99, 33.00, -34.77)
CIE-LCHlch(10.99, 47.94, 313.51°)
OKLaboklab(24.79% 0.0627 -0.0993)
OKLCHoklch(24.79% 0.117 302.3)
XYZxyz(2.5330, 1.2599, 7.3160)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D074E #284E07
analogous
#0A074E #2D074E #4E074C
triadic
#2D074E #4E2D07 #074E2D
tetradic
#2D074E #4E0A07 #284E07 #074C4E
square
#2D074E #4E0A07 #284E07 #074C4E
split-complementary
#2D074E #4C4E07 #074E0A
monochromatic
#10031C #10031C #2D074E #4D0C86 #6E11BE

Accessibility & contrast

On white

16.77
#2D074E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D074E
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D074E#FFFFFF#000000##FFFFFF
##2D074E1.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D50
Deuteranopia (green-blind)
#001D4D
Tritanopia (blue-blind)
#261B2C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2d074e;
/* rgb */ color: rgb(45, 7, 78);
/* oklch */ color: oklch(24.8% 0.117 302.3);
Tailwind
colors: {
  custom: {
    50: '#6a4d80',
    500: '#2d074e',
    950: '#000000',
  },
}
SCSS
$custom: #2d074e;
$custom-light: #6a4d80;
$custom-dark: #000000;
JSON
{
  "hex": "#2d074e",
  "rgb": {
    "r": 45,
    "g": 7,
    "b": 78
  },
  "hsl": {
    "h": 272.113,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24793,
    "c": 0.11748,
    "h": 302.3
  },
  "luminance": 0.0126
}

Semantic roles & 50–950 ramp

primary
#2D074E
secondary
#558C25
accent
#FA2E8D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07010A
muted
#7A777C

Preview Lab

Preview with #2D074E

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

Preview Lab → · Contrast checker → · Palette generator →

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