#2B1864#2B1864

#2B1864 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.125 H 287.2°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2B1864
RGBrgb(43, 24, 100)
HSLhsl(255, 61%, 24%)
HSVhsv(255, 76%, 39%)
CMYKcmyk(57%, 76%, 0%, 60.8%)
CIE-LABlab(15.94, 30.61, -41.53)
CIE-LCHlch(15.94, 51.59, 306.39°)
OKLaboklab(28.88% 0.037 -0.1194)
OKLCHoklch(28.88% 0.125 287.2)
XYZxyz(3.6225, 2.0868, 12.2660)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1864 #516418
analogous
#182B64 #2B1864 #511864
triadic
#2B1864 #642B18 #18642B
tetradic
#2B1864 #64182B #516418 #186451
square
#2B1864 #64182B #516418 #186451
split-complementary
#2B1864 #645118 #2B6418
monochromatic
#0B0619 #160C33 #2B1864 #402495 #5530C7

Accessibility & contrast

On white

14.82
#2B1864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1864
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1864#FFFFFF#000000##FFFFFF
##2B18641.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#142C3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1864;
/* rgb */ color: rgb(43, 24, 100);
/* oklch */ color: oklch(28.9% 0.125 287.2);
Tailwind
colors: {
  custom: {
    50: '#6b5791',
    500: '#2b1864',
    950: '#000000',
  },
}
SCSS
$custom: #2b1864;
$custom-light: #6b5791;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1864",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 255,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28878,
    "c": 0.12501,
    "h": 287.2
  },
  "luminance": 0.02087
}

Semantic roles & 50–950 ramp

primary
#2B1864
secondary
#839A3E
accent
#E443BC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1864

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

Preview Lab → · Contrast checker → · Palette generator →

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