#2B0F4D#2B0F4D

#2B0F4D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.107 H 299.1°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#2B0F4D
RGBrgb(43, 15, 77)
HSLhsl(267, 67%, 18%)
HSVhsv(267, 81%, 30%)
CMYKcmyk(44.2%, 80.5%, 0%, 69.8%)
CIE-LABlab(11.90, 28.57, -32.61)
CIE-LCHlch(11.90, 43.36, 311.22°)
OKLaboklab(25.33% 0.0519 -0.0932)
OKLCHoklch(25.33% 0.107 299.1)
XYZxyz(2.5063, 1.3910, 7.1562)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F4D #314D0F
analogous
#0F124D #2B0F4D #4A0F4D
triadic
#2B0F4D #4D2B0F #0F4D2B
tetradic
#2B0F4D #4D0F12 #314D0F #0F4D4A
square
#2B0F4D #4D0F12 #314D0F #0F4D4A
split-complementary
#2B0F4D #4D4A0F #124D0F
monochromatic
#0E051A #0E051A #2B0F4D #481980 #6423B3

Accessibility & contrast

On white

16.43
#2B0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0F4D
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F4D#FFFFFF#000000##FFFFFF
##2B0F4D1.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#231F2D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b0f4d;
/* rgb */ color: rgb(43, 15, 77);
/* oklch */ color: oklch(25.3% 0.107 299.1);
Tailwind
colors: {
  custom: {
    50: '#68507f',
    500: '#2b0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f4d;
$custom-light: #68507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f4d",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 267.097,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25329,
    "c": 0.10664,
    "h": 299.1
  },
  "luminance": 0.01391
}

Semantic roles & 50–950 ramp

primary
#2B0F4D
secondary
#608731
accent
#EA3E9C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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