#2A137E#2A137E

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

Color values

HEX#2A137E
RGBrgb(42, 19, 126)
HSLhsl(253, 74%, 28%)
HSVhsv(253, 85%, 49%)
CMYKcmyk(66.7%, 84.9%, 0%, 50.6%)
CIE-LABlab(17.75, 41.26, -55.39)
CIE-LCHlch(17.75, 69.07, 306.68°)
OKLaboklab(30.97% 0.0311 -0.1599)
OKLCHoklch(30.97% 0.163 281)
XYZxyz(4.9524, 2.4640, 19.9492)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A137E #677E13
analogous
#13317E #2A137E #5F137E
triadic
#2A137E #7E2A13 #137E2A
tetradic
#2A137E #7E1331 #677E13 #137E5F
square
#2A137E #7E1331 #677E13 #137E5F
split-complementary
#2A137E #7E5F13 #317E13
monochromatic
#09041B #180B49 #2A137E #3C1BB3 #532CDF

Accessibility & contrast

On white

14.07
#2A137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A137E
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A137E#FFFFFF#000000##FFFFFF
##2A137E1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a137e;
/* rgb */ color: rgb(42, 19, 126);
/* oklch */ color: oklch(31.0% 0.163 281.0);
Tailwind
colors: {
  custom: {
    50: '#7156a5',
    500: '#2a137e',
    950: '#000000',
  },
}
SCSS
$custom: #2a137e;
$custom-light: #7156a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a137e",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 252.897,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30971,
    "c": 0.16285,
    "h": 281
  },
  "luminance": 0.02464
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A137E

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

Preview Lab → · Contrast checker → · Palette generator →

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