#2B157B#2B157B

#2B157B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.157 H 282.0°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#2B157B
RGBrgb(43, 21, 123)
HSLhsl(253, 71%, 28%)
HSVhsv(253, 83%, 48%)
CMYKcmyk(65%, 82.9%, 0%, 51.8%)
CIE-LABlab(17.83, 39.51, -53.36)
CIE-LCHlch(17.83, 66.39, 306.51°)
OKLaboklab(30.94% 0.0326 -0.1539)
OKLCHoklch(30.94% 0.157 282)
XYZxyz(4.8385, 2.4796, 18.9587)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B157B #657B15
analogous
#15327B #2B157B #5E157B
triadic
#2B157B #7B2B15 #157B2B
tetradic
#2B157B #7B1532 #657B15 #157B5E
square
#2B157B #7B1532 #657B15 #157B5E
split-complementary
#2B157B #7B5E15 #327B15
monochromatic
#09041A #190C47 #2B157B #3D1EAF #542FDB

Accessibility & contrast

On white

14.04
#2B157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B157B
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B157B#FFFFFF#000000##FFFFFF
##2B157B1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b157b;
/* rgb */ color: rgb(43, 21, 123);
/* oklch */ color: oklch(30.9% 0.157 282.0);
Tailwind
colors: {
  custom: {
    50: '#7056a2',
    500: '#2b157b',
    950: '#000000',
  },
}
SCSS
$custom: #2b157b;
$custom-light: #7056a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b157b",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 252.941,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30942,
    "c": 0.15736,
    "h": 282
  },
  "luminance": 0.0248
}

Semantic roles & 50–950 ramp

primary
#2B157B
secondary
#97B03B
accent
#EE3AC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B157B

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

Preview Lab → · Contrast checker → · Palette generator →

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