#2B185A#2B185A

#2B185A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.112 H 290.5°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#2B185A
RGBrgb(43, 24, 90)
HSLhsl(257, 58%, 22%)
HSVhsv(257, 73%, 35%)
CMYKcmyk(52.2%, 73.3%, 0%, 64.7%)
CIE-LABlab(14.98, 27.37, -36.43)
CIE-LCHlch(14.98, 45.57, 306.92°)
OKLaboklab(27.9% 0.0391 -0.1044)
OKLCHoklch(27.9% 0.112 290.5)
XYZxyz(3.1678, 1.9049, 9.8717)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B185A #475A18
analogous
#18265A #2B185A #4C185A
triadic
#2B185A #5A2B18 #185A2B
tetradic
#2B185A #5A1826 #475A18 #185A4C
square
#2B185A #5A1826 #475A18 #185A4C
split-complementary
#2B185A #5A4C18 #265A18
monochromatic
#0C0618 #140B2A #2B185A #42258A #5932BB

Accessibility & contrast

On white

15.21
#2B185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B185A
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B185A#FFFFFF#000000##FFFFFF
##2B185A1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#1C2936
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b185a;
/* rgb */ color: rgb(43, 24, 90);
/* oklch */ color: oklch(27.9% 0.112 290.5);
Tailwind
colors: {
  custom: {
    50: '#6a5689',
    500: '#2b185a',
    950: '#000000',
  },
}
SCSS
$custom: #2b185a;
$custom-light: #6a5689;
$custom-dark: #000000;
JSON
{
  "hex": "#2b185a",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 257.273,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.279,
    "c": 0.11153,
    "h": 290.5
  },
  "luminance": 0.01905
}

Semantic roles & 50–950 ramp

primary
#2B185A
secondary
#79913D
accent
#E147B5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B185A

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

Preview Lab → · Contrast checker → · Palette generator →

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