#2B1875#2B1875

#2B1875 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.147 H 282.8°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#2B1875
RGBrgb(43, 24, 117)
HSLhsl(252, 66%, 28%)
HSVhsv(252, 79%, 46%)
CMYKcmyk(63.2%, 79.5%, 0%, 54.1%)
CIE-LABlab(17.70, 36.08, -49.73)
CIE-LCHlch(17.70, 61.44, 305.97°)
OKLaboklab(30.65% 0.0326 -0.1434)
OKLCHoklch(30.65% 0.147 282.8)
XYZxyz(4.5328, 2.4509, 17.0604)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1875 #627518
analogous
#183475 #2B1875 #591875
triadic
#2B1875 #752B18 #18752B
tetradic
#2B1875 #751834 #627518 #187559
square
#2B1875 #751834 #627518 #187559
split-complementary
#2B1875 #755918 #347518
monochromatic
#090519 #180E42 #2B1875 #3E22A8 #5432D5

Accessibility & contrast

On white

14.09
#2B1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2B1875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1875
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1875#FFFFFF#000000##FFFFFF
##2B18751.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1875;
/* rgb */ color: rgb(43, 24, 117);
/* oklch */ color: oklch(30.7% 0.147 282.8);
Tailwind
colors: {
  custom: {
    50: '#6f589e',
    500: '#2b1875',
    950: '#000000',
  },
}
SCSS
$custom: #2b1875;
$custom-light: #6f589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1875",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 252.258,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30652,
    "c": 0.14703,
    "h": 282.8
  },
  "luminance": 0.02451
}

Semantic roles & 50–950 ramp

primary
#2B1875
secondary
#94AA3F
accent
#E93FC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1875

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

Preview Lab → · Contrast checker → · Palette generator →

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