#2B1865#2B1865

#2B1865 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.126 H 286.9°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#2B1865
RGBrgb(43, 24, 101)
HSLhsl(255, 62%, 25%)
HSVhsv(255, 76%, 40%)
CMYKcmyk(57.4%, 76.2%, 0%, 60.4%)
CIE-LABlab(16.04, 30.93, -42.03)
CIE-LCHlch(16.04, 52.18, 306.35°)
OKLaboklab(28.98% 0.0368 -0.1209)
OKLCHoklch(28.98% 0.126 286.9)
XYZxyz(3.6712, 2.1063, 12.5225)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1865 #526518
analogous
#182C65 #2B1865 #521865
triadic
#2B1865 #652B18 #18652B
tetradic
#2B1865 #65182C #526518 #186552
square
#2B1865 #65182C #526518 #186552
split-complementary
#2B1865 #655218 #2C6518
monochromatic
#0B0619 #160C34 #2B1865 #402496 #5530C8

Accessibility & contrast

On white

14.78
#2B1865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1865
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1865#FFFFFF#000000##FFFFFF
##2B18651.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#132D3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1865;
/* rgb */ color: rgb(43, 24, 101);
/* oklch */ color: oklch(29.0% 0.126 286.9);
Tailwind
colors: {
  custom: {
    50: '#6c5792',
    500: '#2b1865',
    950: '#000000',
  },
}
SCSS
$custom: #2b1865;
$custom-light: #6c5792;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1865",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 254.805,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28978,
    "c": 0.12634,
    "h": 286.9
  },
  "luminance": 0.02106
}

Semantic roles & 50–950 ramp

primary
#2B1865
secondary
#849B3E
accent
#E543BD
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1865

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

Preview Lab → · Contrast checker → · Palette generator →

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