#2C1858#2C1858

#2C1858 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.109 H 292.2°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#2C1858
RGBrgb(44, 24, 88)
HSLhsl(259, 57%, 22%)
HSVhsv(259, 73%, 35%)
CMYKcmyk(50%, 72.7%, 0%, 65.5%)
CIE-LABlab(14.92, 26.94, -35.19)
CIE-LCHlch(14.92, 44.32, 307.44°)
OKLaboklab(27.83% 0.0411 -0.1007)
OKLCHoklch(27.83% 0.109 292.2)
XYZxyz(3.1263, 1.8932, 9.4313)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1858 #445818
analogous
#182458 #2C1858 #4C1858
triadic
#2C1858 #582C18 #18582C
tetradic
#2C1858 #581824 #445818 #18584C
square
#2C1858 #581824 #445818 #18584C
split-complementary
#2C1858 #584C18 #245818
monochromatic
#0C0718 #140B28 #2C1858 #442588 #5C32B8

Accessibility & contrast

On white

15.23
#2C1858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C1858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1858
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1858#FFFFFF#000000##FFFFFF
##2C18581.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#1F2835
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1858;
/* rgb */ color: rgb(44, 24, 88);
/* oklch */ color: oklch(27.8% 0.109 292.2);
Tailwind
colors: {
  custom: {
    50: '#6a5688',
    500: '#2c1858',
    950: '#000000',
  },
}
SCSS
$custom: #2c1858;
$custom-light: #6a5688;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1858",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 258.75,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27826,
    "c": 0.10879,
    "h": 292.2
  },
  "luminance": 0.01893
}

Semantic roles & 50–950 ramp

primary
#2C1858
secondary
#758F3D
accent
#E047B1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1858

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

Preview Lab → · Contrast checker → · Palette generator →

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