#2C187F#2C187F

#2C187F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.159 H 281.3°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#2C187F
RGBrgb(44, 24, 127)
HSLhsl(252, 68%, 30%)
HSVhsv(252, 81%, 50%)
CMYKcmyk(65.4%, 81.1%, 0%, 50.2%)
CIE-LABlab(18.89, 39.37, -54.15)
CIE-LCHlch(18.89, 66.95, 306.02°)
OKLaboklab(31.84% 0.0312 -0.1562)
OKLCHoklch(31.84% 0.159 281.3)
XYZxyz(5.1949, 2.7207, 20.3259)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C187F #6B7F18
analogous
#18387F #2C187F #5F187F
triadic
#2C187F #7F2C18 #187F2C
tetradic
#2C187F #7F1838 #6B7F18 #187F5F
square
#2C187F #7F1838 #6B7F18 #187F5F
split-complementary
#2C187F #7F5F18 #387F18
monochromatic
#09051A #1A0E4C #2C187F #3E22B2 #5738D9

Accessibility & contrast

On white

13.60
#2C187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2C187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C187F
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C187F#FFFFFF#000000##FFFFFF
##2C187F1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c187f;
/* rgb */ color: rgb(44, 24, 127);
/* oklch */ color: oklch(31.8% 0.159 281.3);
Tailwind
colors: {
  custom: {
    50: '#7158a5',
    500: '#2c187f',
    950: '#000000',
  },
}
SCSS
$custom: #2c187f;
$custom-light: #7158a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c187f",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 251.65,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31837,
    "c": 0.15933,
    "h": 281.3
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#2C187F
secondary
#9DB33F
accent
#EB3DC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C187F

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

Preview Lab → · Contrast checker → · Palette generator →

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