#2B1E62#2B1E62

#2B1E62 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.114 H 285.9°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2B1E62
RGBrgb(43, 30, 98)
HSLhsl(251, 53%, 25%)
HSVhsv(251, 69%, 38%)
CMYKcmyk(56.1%, 69.4%, 0%, 61.6%)
CIE-LABlab(17.10, 26.23, -38.30)
CIE-LCHlch(17.10, 46.42, 304.40°)
OKLaboklab(29.66% 0.0313 -0.1099)
OKLCHoklch(29.66% 0.114 285.9)
XYZxyz(3.6645, 2.3238, 11.8084)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1E62 #55621E
analogous
#1E3362 #2B1E62 #4D1E62
triadic
#2B1E62 #622B1E #1E622B
tetradic
#2B1E62 #621E33 #55621E #1E624D
square
#2B1E62 #621E33 #55621E #1E624D
split-complementary
#2B1E62 #624D1E #33621E
monochromatic
#0A0717 #161033 #2B1E62 #402C91 #543BC0

Accessibility & contrast

On white

14.34
#2B1E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2B1E62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1E62
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1E62#FFFFFF#000000##FFFFFF
##2B1E621.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#152F3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1e62;
/* rgb */ color: rgb(43, 30, 98);
/* oklch */ color: oklch(29.7% 0.114 285.9);
Tailwind
colors: {
  custom: {
    50: '#6a5b8f',
    500: '#2b1e62',
    950: '#000000',
  },
}
SCSS
$custom: #2b1e62;
$custom-light: #6a5b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1e62",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 98
  },
  "hsl": {
    "h": 251.471,
    "s": 53.125,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29656,
    "c": 0.1143,
    "h": 285.9
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#2B1E62
secondary
#879745
accent
#DD4BC1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2B1E62

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

Preview Lab → · Contrast checker → · Palette generator →

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