#2C126E#2C126E

#2C126E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.144 H 286.4°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#2C126E
RGBrgb(44, 18, 110)
HSLhsl(257, 72%, 25%)
HSVhsv(257, 84%, 43%)
CMYKcmyk(60%, 83.6%, 0%, 56.9%)
CIE-LABlab(15.97, 37.10, -48.03)
CIE-LCHlch(15.97, 60.69, 307.68°)
OKLaboklab(29.25% 0.0406 -0.1383)
OKLCHoklch(29.25% 0.144 286.4)
XYZxyz(4.0686, 2.0936, 14.9385)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C126E #546E12
analogous
#12266E #2C126E #5A126E
triadic
#2C126E #6E2C12 #126E2C
tetradic
#2C126E #6E1226 #546E12 #126E5A
square
#2C126E #6E1226 #546E12 #126E5A
split-complementary
#2C126E #6E5A12 #266E12
monochromatic
#0B041A #170939 #2C126E #411BA3 #5623D7

Accessibility & contrast

On white

14.80
#2C126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C126E
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C126E#FFFFFF#000000##FFFFFF
##2C126E1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#0B2D40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c126e;
/* rgb */ color: rgb(44, 18, 110);
/* oklch */ color: oklch(29.2% 0.144 286.4);
Tailwind
colors: {
  custom: {
    50: '#6e5499',
    500: '#2c126e',
    950: '#000000',
  },
}
SCSS
$custom: #2c126e;
$custom-light: #6e5499;
$custom-dark: #000000;
JSON
{
  "hex": "#2c126e",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 256.957,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29246,
    "c": 0.14417,
    "h": 286.4
  },
  "luminance": 0.02094
}

Semantic roles & 50–950 ramp

primary
#2C126E
secondary
#86A537
accent
#EF39BB
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C126E

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

Preview Lab → · Contrast checker → · Palette generator →

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