#2B185D#2B185D

#2B185D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.116 H 289.5°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#2B185D
RGBrgb(43, 24, 93)
HSLhsl(257, 59%, 23%)
HSVhsv(257, 74%, 36%)
CMYKcmyk(53.8%, 74.2%, 0%, 63.5%)
CIE-LABlab(15.26, 28.34, -37.99)
CIE-LCHlch(15.26, 47.40, 306.73°)
OKLaboklab(28.19% 0.0386 -0.109)
OKLCHoklch(28.19% 0.116 289.5)
XYZxyz(3.2981, 1.9570, 10.5578)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B185D #4A5D18
analogous
#18275D #2B185D #4D185D
triadic
#2B185D #5D2B18 #185D2B
tetradic
#2B185D #5D1827 #4A5D18 #185D4D
square
#2B185D #5D1827 #4A5D18 #185D4D
split-complementary
#2B185D #5D4D18 #275D18
monochromatic
#0B0618 #150B2C #2B185D #41258E #5831BE

Accessibility & contrast

On white

15.09
#2B185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2B185D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B185D
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B185D#FFFFFF#000000##FFFFFF
##2B185D1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#1A2A38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b185d;
/* rgb */ color: rgb(43, 24, 93);
/* oklch */ color: oklch(28.2% 0.116 289.5);
Tailwind
colors: {
  custom: {
    50: '#6a568c',
    500: '#2b185d',
    950: '#000000',
  },
}
SCSS
$custom: #2b185d;
$custom-light: #6a568c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b185d",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 256.522,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28188,
    "c": 0.11562,
    "h": 289.5
  },
  "luminance": 0.01957
}

Semantic roles & 50–950 ramp

primary
#2B185D
secondary
#7C933D
accent
#E246B7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B185D

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

Preview Lab → · Contrast checker → · Palette generator →

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