#2B187E#2B187E

#2B187E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.158 H 280.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2B187E
RGBrgb(43, 24, 126)
HSLhsl(251, 68%, 29%)
HSVhsv(251, 81%, 49%)
CMYKcmyk(65.9%, 81%, 0%, 50.6%)
CIE-LABlab(18.68, 38.94, -53.86)
CIE-LCHlch(18.68, 66.46, 305.87°)
OKLaboklab(31.64% 0.0299 -0.1554)
OKLCHoklch(31.64% 0.158 280.9)
XYZxyz(5.0876, 2.6728, 19.9824)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B187E #6B7E18
analogous
#18387E #2B187E #5E187E
triadic
#2B187E #7E2B18 #187E2B
tetradic
#2B187E #7E1838 #6B7E18 #187E5E
square
#2B187E #7E1838 #6B7E18 #187E5E
split-complementary
#2B187E #7E5E18 #387E18
monochromatic
#09051A #190E4B #2B187E #3D22B1 #5637D9

Accessibility & contrast

On white

13.68
#2B187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B187E
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B187E#FFFFFF#000000##FFFFFF
##2B187E1.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b187e;
/* rgb */ color: rgb(43, 24, 126);
/* oklch */ color: oklch(31.6% 0.158 280.9);
Tailwind
colors: {
  custom: {
    50: '#7158a4',
    500: '#2b187e',
    950: '#000000',
  },
}
SCSS
$custom: #2b187e;
$custom-light: #7158a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b187e",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 251.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31638,
    "c": 0.15828,
    "h": 280.9
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

primary
#2B187E
secondary
#9DB23F
accent
#EB3DCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B187E

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

Preview Lab → · Contrast checker → · Palette generator →

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