#2B186C#2B186C

#2B186C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.136 H 285.0°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2B186C
RGBrgb(43, 24, 108)
HSLhsl(254, 64%, 26%)
HSVhsv(254, 78%, 42%)
CMYKcmyk(60.2%, 77.8%, 0%, 57.6%)
CIE-LABlab(16.74, 33.19, -45.46)
CIE-LCHlch(16.74, 56.29, 306.14°)
OKLaboklab(29.7% 0.0351 -0.1309)
OKLCHoklch(29.7% 0.136 285)
XYZxyz(4.0288, 2.2493, 14.4063)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B186C #596C18
analogous
#182F6C #2B186C #55186C
triadic
#2B186C #6C2B18 #186C2B
tetradic
#2B186C #6C182F #596C18 #186C55
square
#2B186C #6C182F #596C18 #186C55
split-complementary
#2B186C #6C5518 #2F6C18
monochromatic
#0A0619 #170D3A #2B186C #3F239E #532ED0

Accessibility & contrast

On white

14.48
#2B186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B186C
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B186C#FFFFFF#000000##FFFFFF
##2B186C1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#092F40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b186c;
/* rgb */ color: rgb(43, 24, 108);
/* oklch */ color: oklch(29.7% 0.136 285.0);
Tailwind
colors: {
  custom: {
    50: '#6d5797',
    500: '#2b186c',
    950: '#000000',
  },
}
SCSS
$custom: #2b186c;
$custom-light: #6d5797;
$custom-dark: #000000;
JSON
{
  "hex": "#2b186c",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 253.571,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29697,
    "c": 0.13551,
    "h": 285
  },
  "luminance": 0.0225
}

Semantic roles & 50–950 ramp

primary
#2B186C
secondary
#8BA23E
accent
#E741C1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2B186C

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

Preview Lab → · Contrast checker → · Palette generator →

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