#2B186F#2B186F

#2B186F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.139 H 284.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2B186F
RGBrgb(43, 24, 111)
HSLhsl(253, 64%, 26%)
HSVhsv(253, 78%, 44%)
CMYKcmyk(61.3%, 78.4%, 0%, 56.5%)
CIE-LABlab(17.06, 34.16, -46.90)
CIE-LCHlch(17.06, 58.02, 306.07°)
OKLaboklab(30.01% 0.0342 -0.1351)
OKLCHoklch(30.01% 0.139 284.2)
XYZxyz(4.1913, 2.3143, 15.2617)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B186F #5C6F18
analogous
#18316F #2B186F #57186F
triadic
#2B186F #6F2B18 #186F2B
tetradic
#2B186F #6F1831 #5C6F18 #186F57
square
#2B186F #6F1831 #5C6F18 #186F57
split-complementary
#2B186F #6F5718 #316F18
monochromatic
#0A0519 #180D3D #2B186F #3E23A1 #532FD2

Accessibility & contrast

On white

14.35
#2B186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2B186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B186F
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B186F#FFFFFF#000000##FFFFFF
##2B186F1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#043042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b186f;
/* rgb */ color: rgb(43, 24, 111);
/* oklch */ color: oklch(30.0% 0.139 284.2);
Tailwind
colors: {
  custom: {
    50: '#6e5799',
    500: '#2b186f',
    950: '#000000',
  },
}
SCSS
$custom: #2b186f;
$custom-light: #6e5799;
$custom-dark: #000000;
JSON
{
  "hex": "#2b186f",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 253.103,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30012,
    "c": 0.13938,
    "h": 284.2
  },
  "luminance": 0.02315
}

Semantic roles & 50–950 ramp

primary
#2B186F
secondary
#8EA53E
accent
#E740C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B186F

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

Preview Lab → · Contrast checker → · Palette generator →

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