#2B184C#2B184C

#2B184C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.092 H 296.5°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#2B184C
RGBrgb(43, 24, 76)
HSLhsl(262, 52%, 20%)
HSVhsv(262, 68%, 30%)
CMYKcmyk(43.4%, 68.4%, 0%, 70.2%)
CIE-LABlab(13.76, 22.90, -28.90)
CIE-LCHlch(13.76, 36.87, 308.39°)
OKLaboklab(26.64% 0.041 -0.0823)
OKLCHoklch(26.64% 0.092 296.5)
XYZxyz(2.6271, 1.6886, 7.0236)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B184C #394C18
analogous
#181F4C #2B184C #45184C
triadic
#2B184C #4C2B18 #184C2B
tetradic
#2B184C #4C181F #394C18 #184C45
square
#2B184C #4C181F #394C18 #184C45
split-complementary
#2B184C #4C4518 #1F4C18
monochromatic
#0D0717 #11091D #2B184C #45277B #6035A9

Accessibility & contrast

On white

15.70
#2B184C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B184C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B184C
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B184C#FFFFFF#000000##FFFFFF
##2B184C1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#01224B
Tritanopia (blue-blind)
#23242F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b184c;
/* rgb */ color: rgb(43, 24, 76);
/* oklch */ color: oklch(26.6% 0.092 296.5);
Tailwind
colors: {
  custom: {
    50: '#67567e',
    500: '#2b184c',
    950: '#000000',
  },
}
SCSS
$custom: #2b184c;
$custom-light: #67567e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b184c",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 76
  },
  "hsl": {
    "h": 261.923,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26637,
    "c": 0.09192,
    "h": 296.5
  },
  "luminance": 0.01689
}

Semantic roles & 50–950 ramp

primary
#2B184C
secondary
#69833D
accent
#DB4CA7
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B184C

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

Preview Lab → · Contrast checker → · Palette generator →

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