#2B137D#2B137D

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

Color values

HEX#2B137D
RGBrgb(43, 19, 125)
HSLhsl(254, 74%, 28%)
HSVhsv(254, 85%, 49%)
CMYKcmyk(65.6%, 84.8%, 0%, 51%)
CIE-LABlab(17.73, 41.05, -54.79)
CIE-LCHlch(17.73, 68.46, 306.85°)
OKLaboklab(30.95% 0.0331 -0.1581)
OKLCHoklch(30.95% 0.161 281.8)
XYZxyz(4.9296, 2.4596, 19.6130)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B137D #657D13
analogous
#13307D #2B137D #60137D
triadic
#2B137D #7D2B13 #137D2B
tetradic
#2B137D #7D1330 #657D13 #137D60
square
#2B137D #7D1330 #657D13 #137D60
split-complementary
#2B137D #7D6013 #307D13
monochromatic
#09041B #190B48 #2B137D #3D1BB2 #542CDF

Accessibility & contrast

On white

14.08
#2B137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B137D
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B137D#FFFFFF#000000##FFFFFF
##2B137D1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b137d;
/* rgb */ color: rgb(43, 19, 125);
/* oklch */ color: oklch(30.9% 0.161 281.8);
Tailwind
colors: {
  custom: {
    50: '#7156a4',
    500: '#2b137d',
    950: '#000000',
  },
}
SCSS
$custom: #2b137d;
$custom-light: #7156a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b137d",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 253.585,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30947,
    "c": 0.16149,
    "h": 281.8
  },
  "luminance": 0.0246
}

Semantic roles & 50–950 ramp

primary
#2B137D
secondary
#97B339
accent
#F038C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B137D

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

Preview Lab → · Contrast checker → · Palette generator →

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