#2B187A#2B187A

#2B187A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.153 H 281.7°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#2B187A
RGBrgb(43, 24, 122)
HSLhsl(252, 67%, 29%)
HSVhsv(252, 80%, 48%)
CMYKcmyk(64.8%, 80.3%, 0%, 52.2%)
CIE-LABlab(18.24, 37.67, -52.04)
CIE-LCHlch(18.24, 64.24, 305.90°)
OKLaboklab(31.2% 0.0311 -0.1501)
OKLCHoklch(31.2% 0.153 281.7)
XYZxyz(4.8346, 2.5716, 18.6502)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B187A #677A18
analogous
#18367A #2B187A #5C187A
triadic
#2B187A #7A2B18 #187A2B
tetradic
#2B187A #7A1836 #677A18 #187A5C
square
#2B187A #7A1836 #677A18 #187A5C
split-complementary
#2B187A #7A5C18 #367A18
monochromatic
#09051A #190E47 #2B187A #3D22AD #5535D7

Accessibility & contrast

On white

13.87
#2B187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2B187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B187A
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B187A#FFFFFF#000000##FFFFFF
##2B187A1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b187a;
/* rgb */ color: rgb(43, 24, 122);
/* oklch */ color: oklch(31.2% 0.153 281.7);
Tailwind
colors: {
  custom: {
    50: '#7058a1',
    500: '#2b187a',
    950: '#000000',
  },
}
SCSS
$custom: #2b187a;
$custom-light: #7058a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b187a",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 251.633,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31196,
    "c": 0.15331,
    "h": 281.7
  },
  "luminance": 0.02572
}

Semantic roles & 50–950 ramp

primary
#2B187A
secondary
#99AF3F
accent
#EA3EC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B187A

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

Preview Lab → · Contrast checker → · Palette generator →

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