#2B167F#2B167F

#2B167F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.161 H 281.0°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#2B167F
RGBrgb(43, 22, 127)
HSLhsl(252, 70%, 29%)
HSVhsv(252, 83%, 50%)
CMYKcmyk(66.1%, 82.7%, 0%, 50.2%)
CIE-LABlab(18.45, 40.25, -54.88)
CIE-LCHlch(18.45, 68.06, 306.26°)
OKLaboklab(31.51% 0.0308 -0.1584)
OKLCHoklch(31.51% 0.161 281)
XYZxyz(5.1127, 2.6193, 20.3107)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B167F #6A7F16
analogous
#16367F #2B167F #60167F
triadic
#2B167F #7F2B16 #167F2B
tetradic
#2B167F #7F1636 #6A7F16 #167F60
square
#2B167F #7F1636 #6A7F16 #167F60
split-complementary
#2B167F #7F6016 #367F16
monochromatic
#09051A #190D4B #2B167F #3D1FB3 #5534DC

Accessibility & contrast

On white

13.78
#2B167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B167F
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B167F#FFFFFF#000000##FFFFFF
##2B167F1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b167f;
/* rgb */ color: rgb(43, 22, 127);
/* oklch */ color: oklch(31.5% 0.161 281.0);
Tailwind
colors: {
  custom: {
    50: '#7157a5',
    500: '#2b167f',
    950: '#000000',
  },
}
SCSS
$custom: #2b167f;
$custom-light: #7157a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b167f",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 252,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31509,
    "c": 0.16134,
    "h": 281
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#2B167F
secondary
#9CB43D
accent
#ED3BCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B167F

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

Preview Lab → · Contrast checker → · Palette generator →

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