#2B187D#2B187D

#2B187D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.157 H 281.1°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#2B187D
RGBrgb(43, 24, 125)
HSLhsl(251, 68%, 29%)
HSVhsv(251, 81%, 49%)
CMYKcmyk(65.6%, 80.8%, 0%, 51%)
CIE-LABlab(18.57, 38.63, -53.41)
CIE-LCHlch(18.57, 65.91, 305.88°)
OKLaboklab(31.53% 0.0302 -0.1541)
OKLCHoklch(31.53% 0.157 281.1)
XYZxyz(5.0234, 2.6471, 19.6443)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B187D #6A7D18
analogous
#18387D #2B187D #5E187D
triadic
#2B187D #7D2B18 #187D2B
tetradic
#2B187D #7D1838 #6A7D18 #187D5E
square
#2B187D #7D1838 #6A7D18 #187D5E
split-complementary
#2B187D #7D5E18 #387D18
monochromatic
#09051A #190E4A #2B187D #3D22B0 #5537D9

Accessibility & contrast

On white

13.73
#2B187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B187D
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B187D#FFFFFF#000000##FFFFFF
##2B187D1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b187d;
/* rgb */ color: rgb(43, 24, 125);
/* oklch */ color: oklch(31.5% 0.157 281.1);
Tailwind
colors: {
  custom: {
    50: '#7158a4',
    500: '#2b187d',
    950: '#000000',
  },
}
SCSS
$custom: #2b187d;
$custom-light: #7158a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b187d",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 251.287,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31527,
    "c": 0.15704,
    "h": 281.1
  },
  "luminance": 0.02648
}

Semantic roles & 50–950 ramp

primary
#2B187D
secondary
#9CB23F
accent
#EB3DCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B187D

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

Preview Lab → · Contrast checker → · Palette generator →

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