#2C126F#2C126F

#2C126F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.145 H 286.1°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#2C126F
RGBrgb(44, 18, 111)
HSLhsl(257, 72%, 25%)
HSVhsv(257, 84%, 44%)
CMYKcmyk(60.4%, 83.8%, 0%, 56.5%)
CIE-LABlab(16.08, 37.40, -48.50)
CIE-LCHlch(16.08, 61.25, 307.64°)
OKLaboklab(29.36% 0.0403 -0.1397)
OKLCHoklch(29.36% 0.145 286.1)
XYZxyz(4.1234, 2.1155, 15.2269)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C126F #556F12
analogous
#12276F #2C126F #5A126F
triadic
#2C126F #6F2C12 #126F2C
tetradic
#2C126F #6F1227 #556F12 #126F5A
square
#2C126F #6F1227 #556F12 #126F5A
split-complementary
#2C126F #6F5A12 #276F12
monochromatic
#0A041A #17093A #2C126F #411BA4 #5623D8

Accessibility & contrast

On white

14.76
#2C126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2C126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C126F
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C126F#FFFFFF#000000##FFFFFF
##2C126F1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#092E41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c126f;
/* rgb */ color: rgb(44, 18, 111);
/* oklch */ color: oklch(29.4% 0.145 286.1);
Tailwind
colors: {
  custom: {
    50: '#6f5499',
    500: '#2c126f',
    950: '#000000',
  },
}
SCSS
$custom: #2c126f;
$custom-light: #6f5499;
$custom-dark: #000000;
JSON
{
  "hex": "#2c126f",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 256.774,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29357,
    "c": 0.14537,
    "h": 286.1
  },
  "luminance": 0.02116
}

Semantic roles & 50–950 ramp

primary
#2C126F
secondary
#87A637
accent
#EF39BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C126F

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

Preview Lab → · Contrast checker → · Palette generator →

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