#2C124B#2C124B

#2C124B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.100 H 300.3°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#2C124B
RGBrgb(44, 18, 75)
HSLhsl(267, 61%, 18%)
HSVhsv(267, 76%, 29%)
CMYKcmyk(41.3%, 76%, 0%, 70.6%)
CIE-LABlab(12.46, 26.53, -30.32)
CIE-LCHlch(12.46, 40.29, 311.19°)
OKLaboklab(25.7% 0.0505 -0.0864)
OKLCHoklch(25.7% 0.1 300.3)
XYZxyz(2.5247, 1.4761, 6.8071)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C124B #314B12
analogous
#12154B #2C124B #48124B
triadic
#2C124B #4B2C12 #124B2C
tetradic
#2C124B #4B1215 #314B12 #124B48
square
#2C124B #4B1215 #314B12 #124B48
split-complementary
#2C124B #4B4812 #154B12
monochromatic
#0E0619 #0F061A #2C124B #491E7C #662AAE

Accessibility & contrast

On white

16.21
#2C124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2C124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C124B
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C124B#FFFFFF#000000##FFFFFF
##2C124B1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#251F2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c124b;
/* rgb */ color: rgb(44, 18, 75);
/* oklch */ color: oklch(25.7% 0.100 300.3);
Tailwind
colors: {
  custom: {
    50: '#68527e',
    500: '#2c124b',
    950: '#000000',
  },
}
SCSS
$custom: #2c124b;
$custom-light: #68527e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c124b",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 267.368,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.257,
    "c": 0.10007,
    "h": 300.3
  },
  "luminance": 0.01476
}

Semantic roles & 50–950 ramp

primary
#2C124B
secondary
#608435
accent
#E4439B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2C124B

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

Preview Lab → · Contrast checker → · Palette generator →

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