#2B186A#2B186A

#2B186A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.133 H 285.5°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#2B186A
RGBrgb(43, 24, 106)
HSLhsl(254, 63%, 25%)
HSVhsv(254, 77%, 42%)
CMYKcmyk(59.4%, 77.4%, 0%, 58.4%)
CIE-LABlab(16.54, 32.55, -44.49)
CIE-LCHlch(16.54, 55.12, 306.19°)
OKLaboklab(29.49% 0.0356 -0.1281)
OKLCHoklch(29.49% 0.133 285.5)
XYZxyz(3.9236, 2.2072, 13.8522)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B186A #576A18
analogous
#182E6A #2B186A #54186A
triadic
#2B186A #6A2B18 #186A2B
tetradic
#2B186A #6A182E #576A18 #186A54
square
#2B186A #6A182E #576A18 #186A54
split-complementary
#2B186A #6A5418 #2E6A18
monochromatic
#0A0619 #170D38 #2B186A #3F239C #532FCE

Accessibility & contrast

On white

14.57
#2B186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2B186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B186A
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B186A#FFFFFF#000000##FFFFFF
##2B186A1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#0D2F3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b186a;
/* rgb */ color: rgb(43, 24, 106);
/* oklch */ color: oklch(29.5% 0.133 285.5);
Tailwind
colors: {
  custom: {
    50: '#6d5795',
    500: '#2b186a',
    950: '#000000',
  },
}
SCSS
$custom: #2b186a;
$custom-light: #6d5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2b186a",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 253.902,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29489,
    "c": 0.13291,
    "h": 285.5
  },
  "luminance": 0.02207
}

Semantic roles & 50–950 ramp

primary
#2B186A
secondary
#89A03E
accent
#E642C0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B186A

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

Preview Lab → · Contrast checker → · Palette generator →

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