#2C188C#2C188C

#2C188C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.175 H 278.9°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2C188C
RGBrgb(44, 24, 140)
HSLhsl(250, 71%, 32%)
HSVhsv(250, 83%, 55%)
CMYKcmyk(68.6%, 82.9%, 0%, 45.1%)
CIE-LABlab(20.37, 43.40, -59.89)
CIE-LCHlch(20.37, 73.96, 305.93°)
OKLaboklab(33.3% 0.0271 -0.173)
OKLCHoklch(33.3% 0.175 278.9)
XYZxyz(6.0974, 3.0817, 25.0794)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C188C #788C18
analogous
#183E8C #2C188C #66188C
triadic
#2C188C #8C2C18 #188C2C
tetradic
#2C188C #8C183E #788C18 #188C66
square
#2C188C #8C183E #788C18 #188C66
split-complementary
#2C188C #8C6618 #3E8C18
monochromatic
#0B0624 #1C0F58 #2C188C #3C21C0 #5B40DE

Accessibility & contrast

On white

12.99
#2C188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2C188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C188C
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C188C#FFFFFF#000000##FFFFFF
##2C188C1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c188c;
/* rgb */ color: rgb(44, 24, 140);
/* oklch */ color: oklch(33.3% 0.175 278.9);
Tailwind
colors: {
  custom: {
    50: '#7459af',
    500: '#2c188c',
    950: '#000000',
  },
}
SCSS
$custom: #2c188c;
$custom-light: #7459af;
$custom-dark: #000000;
JSON
{
  "hex": "#2c188c",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 250.345,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33301,
    "c": 0.17508,
    "h": 278.9
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#2C188C
secondary
#A9BF41
accent
#ED3ACF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2C188C

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

Preview Lab → · Contrast checker → · Palette generator →

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