#2B184F#2B184F

#2B184F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.096 H 295.0°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#2B184F
RGBrgb(43, 24, 79)
HSLhsl(261, 53%, 20%)
HSVhsv(261, 70%, 31%)
CMYKcmyk(45.6%, 69.6%, 0%, 69%)
CIE-LABlab(14.01, 23.85, -30.56)
CIE-LCHlch(14.01, 38.76, 307.97°)
OKLaboklab(26.9% 0.0407 -0.0872)
OKLCHoklch(26.9% 0.096 295)
XYZxyz(2.7338, 1.7313, 7.5858)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B184F #3C4F18
analogous
#18214F #2B184F #46184F
triadic
#2B184F #4F2B18 #184F2B
tetradic
#2B184F #4F1821 #3C4F18 #184F46
square
#2B184F #4F1821 #3C4F18 #184F46
split-complementary
#2B184F #4F4618 #214F18
monochromatic
#0D0717 #110A20 #2B184F #45267E #5E35AD

Accessibility & contrast

On white

15.60
#2B184F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2B184F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B184F
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B184F#FFFFFF#000000##FFFFFF
##2B184F1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#222531
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b184f;
/* rgb */ color: rgb(43, 24, 79);
/* oklch */ color: oklch(26.9% 0.096 295.0);
Tailwind
colors: {
  custom: {
    50: '#685681',
    500: '#2b184f',
    950: '#000000',
  },
}
SCSS
$custom: #2b184f;
$custom-light: #685681;
$custom-dark: #000000;
JSON
{
  "hex": "#2b184f",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 79
  },
  "hsl": {
    "h": 260.727,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26896,
    "c": 0.09619,
    "h": 295
  },
  "luminance": 0.01731
}

Semantic roles & 50–950 ramp

primary
#2B184F
secondary
#6D863D
accent
#DD4BAA
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B184F

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

Preview Lab → · Contrast checker → · Palette generator →

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