#2C185E#2C185E

#2C185E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.117 H 290.0°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#2C185E
RGBrgb(44, 24, 94)
HSLhsl(257, 59%, 23%)
HSVhsv(257, 74%, 37%)
CMYKcmyk(53.2%, 74.5%, 0%, 63.1%)
CIE-LABlab(15.47, 28.86, -38.31)
CIE-LCHlch(15.47, 47.96, 306.99°)
OKLaboklab(28.39% 0.04 -0.1099)
OKLCHoklch(28.39% 0.117 290)
XYZxyz(3.3851, 1.9968, 10.7946)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C185E #4A5E18
analogous
#18275E #2C185E #4F185E
triadic
#2C185E #5E2C18 #185E2C
tetradic
#2C185E #5E1827 #4A5E18 #185E4F
square
#2C185E #5E1827 #4A5E18 #185E4F
split-complementary
#2C185E #5E4F18 #275E18
monochromatic
#0B0618 #150C2D #2C185E #43248F #5A31C0

Accessibility & contrast

On white

15.01
#2C185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2C185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C185E
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C185E#FFFFFF#000000##FFFFFF
##2C185E1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#1B2A39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c185e;
/* rgb */ color: rgb(44, 24, 94);
/* oklch */ color: oklch(28.4% 0.117 290.0);
Tailwind
colors: {
  custom: {
    50: '#6b578c',
    500: '#2c185e',
    950: '#000000',
  },
}
SCSS
$custom: #2c185e;
$custom-light: #6b578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c185e",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 257.143,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28394,
    "c": 0.11694,
    "h": 290
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#2C185E
secondary
#7C943D
accent
#E345B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C185E

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

Preview Lab → · Contrast checker → · Palette generator →

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