#2B167E#2B167E

#2B167E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.160 H 281.2°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#2B167E
RGBrgb(43, 22, 126)
HSLhsl(252, 70%, 29%)
HSVhsv(252, 83%, 49%)
CMYKcmyk(65.9%, 82.5%, 0%, 50.6%)
CIE-LABlab(18.34, 39.94, -54.43)
CIE-LCHlch(18.34, 67.52, 306.27°)
OKLaboklab(31.4% 0.0311 -0.1571)
OKLCHoklch(31.4% 0.16 281.2)
XYZxyz(5.0479, 2.5934, 19.9692)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B167E #697E16
analogous
#16357E #2B167E #5F167E
triadic
#2B167E #7E2B16 #167E2B
tetradic
#2B167E #7E1635 #697E16 #167E5F
square
#2B167E #7E1635 #697E16 #167E5F
split-complementary
#2B167E #7E5F16 #357E16
monochromatic
#09051A #190D4A #2B167E #3D1FB2 #5533DB

Accessibility & contrast

On white

13.83
#2B167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2B167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B167E
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B167E#FFFFFF#000000##FFFFFF
##2B167E1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b167e;
/* rgb */ color: rgb(43, 22, 126);
/* oklch */ color: oklch(31.4% 0.160 281.2);
Tailwind
colors: {
  custom: {
    50: '#7157a5',
    500: '#2b167e',
    950: '#000000',
  },
}
SCSS
$custom: #2b167e;
$custom-light: #7157a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b167e",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 252.115,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31396,
    "c": 0.16011,
    "h": 281.2
  },
  "luminance": 0.02594
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B167E

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

Preview Lab → · Contrast checker → · Palette generator →

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