#2B0F4C#2B0F4C

#2B0F4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.105 H 299.6°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#2B0F4C
RGBrgb(43, 15, 76)
HSLhsl(268, 67%, 18%)
HSVhsv(268, 80%, 30%)
CMYKcmyk(43.4%, 80.3%, 0%, 70.2%)
CIE-LABlab(11.80, 28.28, -32.07)
CIE-LCHlch(11.80, 42.76, 311.41°)
OKLaboklab(25.23% 0.0521 -0.0916)
OKLCHoklch(25.23% 0.105 299.6)
XYZxyz(2.4713, 1.3770, 6.9717)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F4C #304C0F
analogous
#0F114C #2B0F4C #490F4C
triadic
#2B0F4C #4C2B0F #0F4C2B
tetradic
#2B0F4C #4C0F11 #304C0F #0F4C49
square
#2B0F4C #4C0F11 #304C0F #0F4C49
split-complementary
#2B0F4C #4C490F #114C0F
monochromatic
#0E051A #0E051A #2B0F4C #48197F #6523B2

Accessibility & contrast

On white

16.47
#2B0F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0F4C
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F4C#FFFFFF#000000##FFFFFF
##2B0F4C1.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#231E2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b0f4c;
/* rgb */ color: rgb(43, 15, 76);
/* oklch */ color: oklch(25.2% 0.105 299.6);
Tailwind
colors: {
  custom: {
    50: '#68507f',
    500: '#2b0f4c',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f4c;
$custom-light: #68507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f4c",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 267.541,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25233,
    "c": 0.10539,
    "h": 299.6
  },
  "luminance": 0.01377
}

Semantic roles & 50–950 ramp

primary
#2B0F4C
secondary
#5F8631
accent
#EA3E9B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B0F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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