#2C074E#2C074E

#2C074E is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.6% C 0.117 H 301.3°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#2C074E
RGBrgb(44, 7, 78)
HSLhsl(271, 84%, 17%)
HSVhsv(271, 91%, 31%)
CMYKcmyk(43.6%, 91%, 0%, 69.4%)
CIE-LABlab(10.83, 32.84, -35.04)
CIE-LCHlch(10.83, 48.02, 313.14°)
OKLaboklab(24.65% 0.061 -0.1002)
OKLCHoklch(24.65% 0.117 301.3)
XYZxyz(2.4895, 1.2375, 7.3139)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C074E #294E07
analogous
#09074E #2C074E #4E074D
triadic
#2C074E #4E2C07 #074E2C
tetradic
#2C074E #4E0907 #294E07 #074D4E
square
#2C074E #4E0907 #294E07 #074D4E
split-complementary
#2C074E #4D4E07 #074E09
monochromatic
#10031C #10031C #2C074E #4C0C86 #6B11BE

Accessibility & contrast

On white

16.84
#2C074E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C074E
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C074E#FFFFFF#000000##FFFFFF
##2C074E1.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c074e;
/* rgb */ color: rgb(44, 7, 78);
/* oklch */ color: oklch(24.6% 0.117 301.3);
Tailwind
colors: {
  custom: {
    50: '#6a4c80',
    500: '#2c074e',
    950: '#000000',
  },
}
SCSS
$custom: #2c074e;
$custom-light: #6a4c80;
$custom-dark: #000000;
JSON
{
  "hex": "#2c074e",
  "rgb": {
    "r": 44,
    "g": 7,
    "b": 78
  },
  "hsl": {
    "h": 271.268,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24647,
    "c": 0.11727,
    "h": 301.3
  },
  "luminance": 0.01237
}

Semantic roles & 50–950 ramp

primary
#2C074E
secondary
#568C25
accent
#FA2E90
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07010A
muted
#7A777C

Preview Lab

Preview with #2C074E

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

Preview Lab → · Contrast checker → · Palette generator →

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