#2B137F#2B137F

#2B137F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.164 H 281.4°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2B137F
RGBrgb(43, 19, 127)
HSLhsl(253, 74%, 29%)
HSVhsv(253, 85%, 50%)
CMYKcmyk(66.1%, 85%, 0%, 50.2%)
CIE-LABlab(17.97, 41.66, -55.67)
CIE-LCHlch(17.97, 69.53, 306.81°)
OKLaboklab(31.18% 0.0323 -0.1606)
OKLCHoklch(31.18% 0.164 281.4)
XYZxyz(5.0587, 2.5113, 20.2927)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B137F #677F13
analogous
#13317F #2B137F #61137F
triadic
#2B137F #7F2B13 #137F2B
tetradic
#2B137F #7F1331 #677F13 #137F61
square
#2B137F #7F1331 #677F13 #137F61
split-complementary
#2B137F #7F6113 #317F13
monochromatic
#09041B #190B4A #2B137F #3D1BB4 #552DE0

Accessibility & contrast

On white

13.98
#2B137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B137F
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B137F#FFFFFF#000000##FFFFFF
##2B137F1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b137f;
/* rgb */ color: rgb(43, 19, 127);
/* oklch */ color: oklch(31.2% 0.164 281.4);
Tailwind
colors: {
  custom: {
    50: '#7156a5',
    500: '#2b137f',
    950: '#000000',
  },
}
SCSS
$custom: #2b137f;
$custom-light: #7156a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b137f",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 253.333,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31177,
    "c": 0.16387,
    "h": 281.4
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#2B137F
secondary
#99B439
accent
#F137C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B137F

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

Preview Lab → · Contrast checker → · Palette generator →

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