#2B186B#2B186B

#2B186B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.134 H 285.3°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#2B186B
RGBrgb(43, 24, 107)
HSLhsl(254, 63%, 26%)
HSVhsv(254, 78%, 42%)
CMYKcmyk(59.8%, 77.6%, 0%, 58%)
CIE-LABlab(16.64, 32.87, -44.97)
CIE-LCHlch(16.64, 55.70, 306.16°)
OKLaboklab(29.59% 0.0353 -0.1295)
OKLCHoklch(29.59% 0.134 285.3)
XYZxyz(3.9759, 2.2282, 14.1276)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B186B #586B18
analogous
#182E6B #2B186B #54186B
triadic
#2B186B #6B2B18 #186B2B
tetradic
#2B186B #6B182E #586B18 #186B54
square
#2B186B #6B182E #586B18 #186B54
split-complementary
#2B186B #6B5418 #2E6B18
monochromatic
#0A0619 #170D39 #2B186B #3F239D #532ECF

Accessibility & contrast

On white

14.53
#2B186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2B186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B186B
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B186B#FFFFFF#000000##FFFFFF
##2B186B1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#0B2F40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b186b;
/* rgb */ color: rgb(43, 24, 107);
/* oklch */ color: oklch(29.6% 0.134 285.3);
Tailwind
colors: {
  custom: {
    50: '#6d5796',
    500: '#2b186b',
    950: '#000000',
  },
}
SCSS
$custom: #2b186b;
$custom-light: #6d5796;
$custom-dark: #000000;
JSON
{
  "hex": "#2b186b",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 253.735,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29593,
    "c": 0.13421,
    "h": 285.3
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#2B186B
secondary
#8AA13E
accent
#E641C1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B186B

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

Preview Lab → · Contrast checker → · Palette generator →

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