#2C188B#2C188B

#2C188B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.174 H 279.1°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2C188B
RGBrgb(44, 24, 139)
HSLhsl(250, 71%, 32%)
HSVhsv(250, 83%, 55%)
CMYKcmyk(68.3%, 82.7%, 0%, 45.5%)
CIE-LABlab(20.25, 43.09, -59.46)
CIE-LCHlch(20.25, 73.43, 305.93°)
OKLaboklab(33.19% 0.0274 -0.1717)
OKLCHoklch(33.19% 0.174 279.1)
XYZxyz(6.0240, 3.0523, 24.6928)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C188B #778B18
analogous
#183E8B #2C188B #66188B
triadic
#2C188B #8B2C18 #188B2C
tetradic
#2C188B #8B183E #778B18 #188B66
square
#2C188B #8B183E #778B18 #188B66
split-complementary
#2C188B #8B6618 #3E8B18
monochromatic
#0B0623 #1B0F57 #2C188B #3D21BF #5B3FDE

Accessibility & contrast

On white

13.04
#2C188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2C188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C188B
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C188B#FFFFFF#000000##FFFFFF
##2C188B1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c188b;
/* rgb */ color: rgb(44, 24, 139);
/* oklch */ color: oklch(33.2% 0.174 279.1);
Tailwind
colors: {
  custom: {
    50: '#7459ae',
    500: '#2c188b',
    950: '#000000',
  },
}
SCSS
$custom: #2c188b;
$custom-light: #7459ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c188b",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 250.435,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33187,
    "c": 0.17389,
    "h": 279.1
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#2C188B
secondary
#A8BE40
accent
#ED3ACE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C188B

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

Preview Lab → · Contrast checker → · Palette generator →

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