#2B137B#2B137B

#2B137B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.159 H 282.2°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#2B137B
RGBrgb(43, 19, 123)
HSLhsl(254, 73%, 28%)
HSVhsv(254, 85%, 48%)
CMYKcmyk(65%, 84.6%, 0%, 51.8%)
CIE-LABlab(17.50, 40.45, -53.90)
CIE-LCHlch(17.50, 67.39, 306.89°)
OKLaboklab(30.72% 0.0338 -0.1555)
OKLCHoklch(30.72% 0.159 282.2)
XYZxyz(4.8032, 2.4090, 18.9469)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B137B #637B13
analogous
#132F7B #2B137B #5F137B
triadic
#2B137B #7B2B13 #137B2B
tetradic
#2B137B #7B132F #637B13 #137B5F
square
#2B137B #7B132F #637B13 #137B5F
split-complementary
#2B137B #7B5F13 #2F7B13
monochromatic
#09041B #180B46 #2B137B #3E1BB0 #542ADE

Accessibility & contrast

On white

14.17
#2B137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B137B
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B137B#FFFFFF#000000##FFFFFF
##2B137B1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b137b;
/* rgb */ color: rgb(43, 19, 123);
/* oklch */ color: oklch(30.7% 0.159 282.2);
Tailwind
colors: {
  custom: {
    50: '#7155a2',
    500: '#2b137b',
    950: '#000000',
  },
}
SCSS
$custom: #2b137b;
$custom-light: #7155a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b137b",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 253.846,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30718,
    "c": 0.15909,
    "h": 282.2
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#2B137B
secondary
#95B139
accent
#F038C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B137B

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

Preview Lab → · Contrast checker → · Palette generator →

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