#2C188A#2C188A

#2C188A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.173 H 279.2°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#2C188A
RGBrgb(44, 24, 138)
HSLhsl(251, 70%, 32%)
HSVhsv(251, 83%, 54%)
CMYKcmyk(68.1%, 82.6%, 0%, 45.9%)
CIE-LABlab(20.14, 42.78, -59.03)
CIE-LCHlch(20.14, 72.90, 305.94°)
OKLaboklab(33.07% 0.0277 -0.1704)
OKLCHoklch(33.07% 0.173 279.2)
XYZxyz(5.9513, 3.0232, 24.3097)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C188A #768A18
analogous
#183D8A #2C188A #65188A
triadic
#2C188A #8A2C18 #188A2C
tetradic
#2C188A #8A183D #768A18 #188A65
square
#2C188A #8A183D #768A18 #188A65
split-complementary
#2C188A #8A6518 #3D8A18
monochromatic
#0B0622 #1B0F56 #2C188A #3D21BE #5B3FDE

Accessibility & contrast

On white

13.09
#2C188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2C188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C188A
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C188A#FFFFFF#000000##FFFFFF
##2C188A1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c188a;
/* rgb */ color: rgb(44, 24, 138);
/* oklch */ color: oklch(33.1% 0.173 279.2);
Tailwind
colors: {
  custom: {
    50: '#7459ad',
    500: '#2c188a',
    950: '#000000',
  },
}
SCSS
$custom: #2c188a;
$custom-light: #7459ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c188a",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 250.526,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33073,
    "c": 0.17269,
    "h": 279.2
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#2C188A
secondary
#A7BD40
accent
#ED3BCE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C188A

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

Preview Lab → · Contrast checker → · Palette generator →

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