#2B1870#2B1870

#2B1870 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.141 H 284.0°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2B1870
RGBrgb(43, 24, 112)
HSLhsl(253, 65%, 27%)
HSVhsv(253, 79%, 44%)
CMYKcmyk(61.6%, 78.6%, 0%, 56.1%)
CIE-LABlab(17.16, 34.48, -47.37)
CIE-LCHlch(17.16, 58.59, 306.05°)
OKLaboklab(30.12% 0.034 -0.1365)
OKLCHoklch(30.12% 0.141 284)
XYZxyz(4.2466, 2.3364, 15.5533)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1870 #5D7018
analogous
#183170 #2B1870 #571870
triadic
#2B1870 #702B18 #18702B
tetradic
#2B1870 #701831 #5D7018 #187057
square
#2B1870 #701831 #5D7018 #187057
split-complementary
#2B1870 #705718 #317018
monochromatic
#0A0519 #180D3E #2B1870 #3E23A2 #5330D3

Accessibility & contrast

On white

14.31
#2B1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1870
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1870#FFFFFF#000000##FFFFFF
##2B18701.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#023143
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1870;
/* rgb */ color: rgb(43, 24, 112);
/* oklch */ color: oklch(30.1% 0.141 284.0);
Tailwind
colors: {
  custom: {
    50: '#6e579a',
    500: '#2b1870',
    950: '#000000',
  },
}
SCSS
$custom: #2b1870;
$custom-light: #6e579a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1870",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 252.955,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30117,
    "c": 0.14066,
    "h": 284
  },
  "luminance": 0.02337
}

Semantic roles & 50–950 ramp

primary
#2B1870
secondary
#8FA53E
accent
#E840C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1870

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

Preview Lab → · Contrast checker → · Palette generator →

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