#2B167C#2B167C

#2B167C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.158 H 281.6°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#2B167C
RGBrgb(43, 22, 124)
HSLhsl(252, 70%, 29%)
HSVhsv(252, 82%, 49%)
CMYKcmyk(65.3%, 82.3%, 0%, 51.4%)
CIE-LABlab(18.11, 39.32, -53.53)
CIE-LCHlch(18.11, 66.42, 306.30°)
OKLaboklab(31.17% 0.0317 -0.1544)
OKLCHoklch(31.17% 0.158 281.6)
XYZxyz(4.9201, 2.5423, 19.2963)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B167C #677C16
analogous
#16347C #2B167C #5E167C
triadic
#2B167C #7C2B16 #167C2B
tetradic
#2B167C #7C1634 #677C16 #167C5E
square
#2B167C #7C1634 #677C16 #167C5E
split-complementary
#2B167C #7C5E16 #347C16
monochromatic
#09051A #190D48 #2B167C #3D1FB0 #5532DB

Accessibility & contrast

On white

13.92
#2B167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B167C
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B167C#FFFFFF#000000##FFFFFF
##2B167C1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b167c;
/* rgb */ color: rgb(43, 22, 124);
/* oklch */ color: oklch(31.2% 0.158 281.6);
Tailwind
colors: {
  custom: {
    50: '#7157a3',
    500: '#2b167c',
    950: '#000000',
  },
}
SCSS
$custom: #2b167c;
$custom-light: #7157a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b167c",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 252.353,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31171,
    "c": 0.15767,
    "h": 281.6
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#2B167C
secondary
#99B13D
accent
#ED3BC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B167C

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

Preview Lab → · Contrast checker → · Palette generator →

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