#2B137E#2B137E

#2B137E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.163 H 281.6°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#2B137E
RGBrgb(43, 19, 126)
HSLhsl(253, 74%, 28%)
HSVhsv(253, 85%, 49%)
CMYKcmyk(65.9%, 84.9%, 0%, 50.6%)
CIE-LABlab(17.85, 41.36, -55.23)
CIE-LCHlch(17.85, 69.00, 306.83°)
OKLaboklab(31.06% 0.0327 -0.1594)
OKLCHoklch(31.06% 0.163 281.6)
XYZxyz(4.9938, 2.4853, 19.9512)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B137E #667E13
analogous
#13307E #2B137E #60137E
triadic
#2B137E #7E2B13 #137E2B
tetradic
#2B137E #7E1330 #667E13 #137E60
square
#2B137E #7E1330 #667E13 #137E60
split-complementary
#2B137E #7E6013 #307E13
monochromatic
#09041B #190B49 #2B137E #3D1BB3 #542CDF

Accessibility & contrast

On white

14.03
#2B137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B137E
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B137E#FFFFFF#000000##FFFFFF
##2B137E1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b137e;
/* rgb */ color: rgb(43, 19, 126);
/* oklch */ color: oklch(31.1% 0.163 281.6);
Tailwind
colors: {
  custom: {
    50: '#7156a5',
    500: '#2b137e',
    950: '#000000',
  },
}
SCSS
$custom: #2b137e;
$custom-light: #7156a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b137e",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 253.458,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31062,
    "c": 0.16268,
    "h": 281.6
  },
  "luminance": 0.02486
}

Semantic roles & 50–950 ramp

primary
#2B137E
secondary
#98B439
accent
#F037C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B137E

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

Preview Lab → · Contrast checker → · Palette generator →

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