#2A137B#2A137B

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

Color values

HEX#2A137B
RGBrgb(42, 19, 123)
HSLhsl(253, 73%, 28%)
HSVhsv(253, 85%, 48%)
CMYKcmyk(65.9%, 84.6%, 0%, 51.8%)
CIE-LABlab(17.40, 40.34, -54.06)
CIE-LCHlch(17.40, 67.46, 306.73°)
OKLaboklab(30.63% 0.0321 -0.156)
OKLCHoklch(30.63% 0.159 281.6)
XYZxyz(4.7617, 2.3877, 18.9450)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A137B #647B13
analogous
#13307B #2A137B #5E137B
triadic
#2A137B #7B2A13 #137B2A
tetradic
#2A137B #7B1330 #647B13 #137B5E
square
#2A137B #7B1330 #647B13 #137B5E
split-complementary
#2A137B #7B5E13 #307B13
monochromatic
#09041B #180B46 #2A137B #3C1BB0 #522ADE

Accessibility & contrast

On white

14.21
#2A137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A137B
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A137B#FFFFFF#000000##FFFFFF
##2A137B1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.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: #2a137b;
/* rgb */ color: rgb(42, 19, 123);
/* oklch */ color: oklch(30.6% 0.159 281.6);
Tailwind
colors: {
  custom: {
    50: '#7055a2',
    500: '#2a137b',
    950: '#000000',
  },
}
SCSS
$custom: #2a137b;
$custom-light: #7055a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a137b",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 253.269,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30625,
    "c": 0.15926,
    "h": 281.6
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#2A137B
secondary
#96B139
accent
#F038C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A137B

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

Preview Lab → · Contrast checker → · Palette generator →

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