#2C138E#2C138E

#2C138E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.181 H 279.1°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2C138E
RGBrgb(44, 19, 142)
HSLhsl(252, 76%, 32%)
HSVhsv(252, 87%, 56%)
CMYKcmyk(69%, 86.6%, 0%, 44.3%)
CIE-LABlab(19.86, 46.20, -61.99)
CIE-LCHlch(19.86, 77.31, 306.70°)
OKLaboklab(33.02% 0.0286 -0.179)
OKLCHoklch(33.02% 0.181 279.1)
XYZxyz(6.1525, 2.9537, 25.8318)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C138E #758E13
analogous
#13388E #2C138E #6A138E
triadic
#2C138E #8E2C13 #138E2C
tetradic
#2C138E #8E1338 #758E13 #138E6A
square
#2C138E #8E1338 #758E13 #138E6A
split-complementary
#2C138E #8E6A13 #388E13
monochromatic
#0B0522 #1B0C58 #2C138E #3D1AC4 #5A37E4

Accessibility & contrast

On white

13.20
#2C138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C138E
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C138E#FFFFFF#000000##FFFFFF
##2C138E1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#002B8C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c138e;
/* rgb */ color: rgb(44, 19, 142);
/* oklch */ color: oklch(33.0% 0.181 279.1);
Tailwind
colors: {
  custom: {
    50: '#7557b0',
    500: '#2c138e',
    950: '#000000',
  },
}
SCSS
$custom: #2c138e;
$custom-light: #7557b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c138e",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 252.195,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33019,
    "c": 0.18124,
    "h": 279.1
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#2C138E
secondary
#A7C23B
accent
#F335CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2C138E

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

Preview Lab → · Contrast checker → · Palette generator →

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