#2B0C53#2B0C53

#2B0C53 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.118 H 296.8°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#2B0C53
RGBrgb(43, 12, 83)
HSLhsl(266, 75%, 19%)
HSVhsv(266, 86%, 33%)
CMYKcmyk(48.2%, 85.5%, 0%, 67.5%)
CIE-LABlab(11.96, 31.81, -36.62)
CIE-LCHlch(11.96, 48.51, 310.98°)
OKLaboklab(25.56% 0.0531 -0.1049)
OKLCHoklch(25.56% 0.118 296.8)
XYZxyz(2.6887, 1.4010, 8.3107)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0C53 #34530C
analogous
#0C1053 #2B0C53 #4E0C53
triadic
#2B0C53 #532B0C #0C532B
tetradic
#2B0C53 #530C10 #34530C #0C534E
square
#2B0C53 #530C10 #34530C #0C534E
split-complementary
#2B0C53 #534E0C #10530C
monochromatic
#0E041B #0F041E #2B0C53 #471488 #621BBE

Accessibility & contrast

On white

16.40
#2B0C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2B0C53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0C53
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0C53#FFFFFF#000000##FFFFFF
##2B0C531.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002055
Deuteranopia (green-blind)
#001F52
Tritanopia (blue-blind)
#20202F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b0c53;
/* rgb */ color: rgb(43, 12, 83);
/* oklch */ color: oklch(25.6% 0.118 296.8);
Tailwind
colors: {
  custom: {
    50: '#6a4f84',
    500: '#2b0c53',
    950: '#000000',
  },
}
SCSS
$custom: #2b0c53;
$custom-light: #6a4f84;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0c53",
  "rgb": {
    "r": 43,
    "g": 12,
    "b": 83
  },
  "hsl": {
    "h": 266.197,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25558,
    "c": 0.11757,
    "h": 296.8
  },
  "luminance": 0.01401
}

Semantic roles & 50–950 ramp

primary
#2B0C53
secondary
#648E2D
accent
#F136A0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B0C53

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

Preview Lab → · Contrast checker → · Palette generator →

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