#2B167B#2B167B

#2B167B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.156 H 281.8°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#2B167B
RGBrgb(43, 22, 123)
HSLhsl(252, 70%, 28%)
HSVhsv(252, 82%, 48%)
CMYKcmyk(65%, 82.1%, 0%, 51.8%)
CIE-LABlab(18.00, 39.01, -53.08)
CIE-LCHlch(18.00, 65.87, 306.32°)
OKLaboklab(31.06% 0.032 -0.1531)
OKLCHoklch(31.06% 0.156 281.8)
XYZxyz(4.8572, 2.5171, 18.9649)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B167B #667B16
analogous
#16337B #2B167B #5D167B
triadic
#2B167B #7B2B16 #167B2B
tetradic
#2B167B #7B1633 #667B16 #167B5D
square
#2B167B #7B1633 #667B16 #167B5D
split-complementary
#2B167B #7B5D16 #337B16
monochromatic
#09051A #190D47 #2B167B #3D1FAF #5431DA

Accessibility & contrast

On white

13.97
#2B167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B167B
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B167B#FFFFFF#000000##FFFFFF
##2B167B1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b167b;
/* rgb */ color: rgb(43, 22, 123);
/* oklch */ color: oklch(31.1% 0.156 281.8);
Tailwind
colors: {
  custom: {
    50: '#7057a2',
    500: '#2b167b',
    950: '#000000',
  },
}
SCSS
$custom: #2b167b;
$custom-light: #7057a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b167b",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 252.475,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3106,
    "c": 0.15646,
    "h": 281.8
  },
  "luminance": 0.02517
}

Semantic roles & 50–950 ramp

primary
#2B167B
secondary
#98B03D
accent
#EC3BC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B167B

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

Preview Lab → · Contrast checker → · Palette generator →

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