#2B137C#2B137C

#2B137C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.160 H 282.0°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#2B137C
RGBrgb(43, 19, 124)
HSLhsl(254, 73%, 28%)
HSVhsv(254, 85%, 49%)
CMYKcmyk(65.3%, 84.7%, 0%, 51.4%)
CIE-LABlab(17.62, 40.75, -54.34)
CIE-LCHlch(17.62, 67.93, 306.87°)
OKLaboklab(30.83% 0.0334 -0.1568)
OKLCHoklch(30.83% 0.16 282)
XYZxyz(4.8661, 2.4342, 19.2783)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B137C #647C13
analogous
#132F7C #2B137C #5F137C
triadic
#2B137C #7C2B13 #137C2B
tetradic
#2B137C #7C132F #647C13 #137C5F
square
#2B137C #7C132F #647C13 #137C5F
split-complementary
#2B137C #7C5F13 #2F7C13
monochromatic
#09041B #190B47 #2B137C #3D1BB1 #542BDF

Accessibility & contrast

On white

14.12
#2B137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B137C
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B137C#FFFFFF#000000##FFFFFF
##2B137C1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b137c;
/* rgb */ color: rgb(43, 19, 124);
/* oklch */ color: oklch(30.8% 0.160 282.0);
Tailwind
colors: {
  custom: {
    50: '#7155a3',
    500: '#2b137c',
    950: '#000000',
  },
}
SCSS
$custom: #2b137c;
$custom-light: #7155a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b137c",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 253.714,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30832,
    "c": 0.16029,
    "h": 282
  },
  "luminance": 0.02435
}

Semantic roles & 50–950 ramp

primary
#2B137C
secondary
#96B239
accent
#F038C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B137C

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

Preview Lab → · Contrast checker → · Palette generator →

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