#2B0F5A#2B0F5A

#2B0F5A is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.123 H 293.0°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#2B0F5A
RGBrgb(43, 15, 90)
HSLhsl(262, 71%, 21%)
HSVhsv(262, 83%, 35%)
CMYKcmyk(52.2%, 83.3%, 0%, 64.7%)
CIE-LABlab(13.19, 32.41, -39.36)
CIE-LCHlch(13.19, 50.99, 309.47°)
OKLaboklab(26.63% 0.0481 -0.113)
OKLCHoklch(26.63% 0.123 293)
XYZxyz(3.0120, 1.5933, 9.8197)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F5A #3E5A0F
analogous
#0F185A #2B0F5A #500F5A
triadic
#2B0F5A #5A2B0F #0F5A2B
tetradic
#2B0F5A #5A0F18 #3E5A0F #0F5A50
square
#2B0F5A #5A0F18 #3E5A0F #0F5A50
split-complementary
#2B0F5A #5A500F #185A0F
monochromatic
#0D041A #120626 #2B0F5A #44188E #5D20C3

Accessibility & contrast

On white

15.93
#2B0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2B0F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0F5A
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F5A#FFFFFF#000000##FFFFFF
##2B0F5A1.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#1C2434
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b0f5a;
/* rgb */ color: rgb(43, 15, 90);
/* oklch */ color: oklch(26.6% 0.123 293.0);
Tailwind
colors: {
  custom: {
    50: '#6a5189',
    500: '#2b0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f5a;
$custom-light: #6a5189;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f5a",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 262.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26633,
    "c": 0.12278,
    "h": 293
  },
  "luminance": 0.01593
}

Semantic roles & 50–950 ramp

primary
#2B0F5A
secondary
#6F9431
accent
#EE3AAB
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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