#2B0F4F#2B0F4F

#2B0F4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.109 H 298.1°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#2B0F4F
RGBrgb(43, 15, 79)
HSLhsl(266, 68%, 18%)
HSVhsv(266, 81%, 31%)
CMYKcmyk(45.6%, 81%, 0%, 69%)
CIE-LABlab(12.09, 29.16, -33.68)
CIE-LCHlch(12.09, 44.55, 310.88°)
OKLaboklab(25.52% 0.0514 -0.0963)
OKLCHoklch(25.52% 0.109 298.1)
XYZxyz(2.5780, 1.4197, 7.5338)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F4F #334F0F
analogous
#0F134F #2B0F4F #4B0F4F
triadic
#2B0F4F #4F2B0F #0F4F2B
tetradic
#2B0F4F #4F0F13 #334F0F #0F4F4B
square
#2B0F4F #4F0F13 #334F0F #0F4F4B
split-complementary
#2B0F4F #4F4B0F #134F0F
monochromatic
#0E051A #0F051C #2B0F4F #471982 #6323B6

Accessibility & contrast

On white

16.36
#2B0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0F4F
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F4F#FFFFFF#000000##FFFFFF
##2B0F4F1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#22202E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b0f4f;
/* rgb */ color: rgb(43, 15, 79);
/* oklch */ color: oklch(25.5% 0.109 298.1);
Tailwind
colors: {
  custom: {
    50: '#695081',
    500: '#2b0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f4f;
$custom-light: #695081;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f4f",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 266.25,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25523,
    "c": 0.10914,
    "h": 298.1
  },
  "luminance": 0.0142
}

Semantic roles & 50–950 ramp

primary
#2B0F4F
secondary
#628931
accent
#EB3D9F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2B0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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