#2B167D#2B167D

#2B167D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.159 H 281.4°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#2B167D
RGBrgb(43, 22, 125)
HSLhsl(252, 70%, 29%)
HSVhsv(252, 82%, 49%)
CMYKcmyk(65.6%, 82.4%, 0%, 51%)
CIE-LABlab(18.22, 39.63, -53.98)
CIE-LCHlch(18.22, 66.97, 306.29°)
OKLaboklab(31.28% 0.0314 -0.1558)
OKLCHoklch(31.28% 0.159 281.4)
XYZxyz(4.9837, 2.5677, 19.6311)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B167D #687D16
analogous
#16357D #2B167D #5F167D
triadic
#2B167D #7D2B16 #167D2B
tetradic
#2B167D #7D1635 #687D16 #167D5F
square
#2B167D #7D1635 #687D16 #167D5F
split-complementary
#2B167D #7D5F16 #357D16
monochromatic
#09051A #190D49 #2B167D #3D1FB1 #5532DB

Accessibility & contrast

On white

13.87
#2B167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2B167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B167D
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B167D#FFFFFF#000000##FFFFFF
##2B167D1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b167d;
/* rgb */ color: rgb(43, 22, 125);
/* oklch */ color: oklch(31.3% 0.159 281.4);
Tailwind
colors: {
  custom: {
    50: '#7157a4',
    500: '#2b167d',
    950: '#000000',
  },
}
SCSS
$custom: #2b167d;
$custom-light: #7157a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b167d",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 252.233,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31284,
    "c": 0.1589,
    "h": 281.4
  },
  "luminance": 0.02568
}

Semantic roles & 50–950 ramp

primary
#2B167D
secondary
#9AB23D
accent
#ED3BC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B167D

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

Preview Lab → · Contrast checker → · Palette generator →

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