#2B1674#2B1674

#2B1674 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.148 H 283.4°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#2B1674
RGBrgb(43, 22, 116)
HSLhsl(253, 68%, 27%)
HSVhsv(253, 81%, 45%)
CMYKcmyk(62.9%, 81%, 0%, 54.5%)
CIE-LABlab(17.22, 36.82, -49.87)
CIE-LCHlch(17.22, 61.99, 306.44°)
OKLaboklab(30.29% 0.0343 -0.1438)
OKLCHoklch(30.29% 0.148 283.4)
XYZxyz(4.4346, 2.3481, 16.7392)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1674 #5F7416
analogous
#163074 #2B1674 #5A1674
triadic
#2B1674 #742B16 #16742B
tetradic
#2B1674 #741630 #5F7416 #16745A
square
#2B1674 #741630 #5F7416 #16745A
split-complementary
#2B1674 #745A16 #307416
monochromatic
#0A051A #180C41 #2B1674 #3E20A7 #532DD7

Accessibility & contrast

On white

14.29
#2B1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2B1674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1674
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1674#FFFFFF#000000##FFFFFF
##2B16741.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1674;
/* rgb */ color: rgb(43, 22, 116);
/* oklch */ color: oklch(30.3% 0.148 283.4);
Tailwind
colors: {
  custom: {
    50: '#6f569d',
    500: '#2b1674',
    950: '#000000',
  },
}
SCSS
$custom: #2b1674;
$custom-light: #6f569d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1674",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 253.404,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30285,
    "c": 0.1478,
    "h": 283.4
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#2B1674
secondary
#91AA3C
accent
#EB3DC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1674

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

Preview Lab → · Contrast checker → · Palette generator →

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