#2B187B#2B187B

#2B187B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.155 H 281.5°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#2B187B
RGBrgb(43, 24, 123)
HSLhsl(252, 67%, 29%)
HSVhsv(252, 80%, 48%)
CMYKcmyk(65%, 80.5%, 0%, 51.8%)
CIE-LABlab(18.35, 37.99, -52.50)
CIE-LCHlch(18.35, 64.80, 305.89°)
OKLaboklab(31.31% 0.0308 -0.1515)
OKLCHoklch(31.31% 0.155 281.5)
XYZxyz(4.8969, 2.5966, 18.9782)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B187B #687B18
analogous
#18377B #2B187B #5D187B
triadic
#2B187B #7B2B18 #187B2B
tetradic
#2B187B #7B1837 #687B18 #187B5D
square
#2B187B #7B1837 #687B18 #187B5D
split-complementary
#2B187B #7B5D18 #377B18
monochromatic
#09051A #190E48 #2B187B #3D22AE #5536D8

Accessibility & contrast

On white

13.82
#2B187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2B187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B187B
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B187B#FFFFFF#000000##FFFFFF
##2B187B1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b187b;
/* rgb */ color: rgb(43, 24, 123);
/* oklch */ color: oklch(31.3% 0.155 281.5);
Tailwind
colors: {
  custom: {
    50: '#7058a2',
    500: '#2b187b',
    950: '#000000',
  },
}
SCSS
$custom: #2b187b;
$custom-light: #7058a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b187b",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 251.515,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31306,
    "c": 0.15456,
    "h": 281.5
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#2B187B
secondary
#9AB03F
accent
#EA3EC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B187B

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

Preview Lab → · Contrast checker → · Palette generator →

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