#2C104E#2C104E

#2C104E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.107 H 299.3°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#2C104E
RGBrgb(44, 16, 78)
HSLhsl(267, 66%, 18%)
HSVhsv(267, 79%, 31%)
CMYKcmyk(43.6%, 79.5%, 0%, 69.4%)
CIE-LABlab(12.33, 28.54, -32.60)
CIE-LCHlch(12.33, 43.32, 311.20°)
OKLaboklab(25.69% 0.0522 -0.0931)
OKLCHoklch(25.69% 0.107 299.3)
XYZxyz(2.5988, 1.4561, 7.3504)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C104E #324E10
analogous
#10134E #2C104E #4B104E
triadic
#2C104E #4E2C10 #104E2C
tetradic
#2C104E #4E1013 #324E10 #104E4B
square
#2C104E #4E1013 #324E10 #104E4B
split-complementary
#2C104E #4E4B10 #134E10
monochromatic
#0E0519 #0F061B #2C104E #491A81 #6525B4

Accessibility & contrast

On white

16.26
#2C104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2C104E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C104E
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C104E#FFFFFF#000000##FFFFFF
##2C104E1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#24202E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c104e;
/* rgb */ color: rgb(44, 16, 78);
/* oklch */ color: oklch(25.7% 0.107 299.3);
Tailwind
colors: {
  custom: {
    50: '#695180',
    500: '#2c104e',
    950: '#000000',
  },
}
SCSS
$custom: #2c104e;
$custom-light: #695180;
$custom-dark: #000000;
JSON
{
  "hex": "#2c104e",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 267.097,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25693,
    "c": 0.10674,
    "h": 299.3
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#2C104E
secondary
#618832
accent
#E93F9C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C104E

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

Preview Lab → · Contrast checker → · Palette generator →

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