#2A137F#2A137F

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

Color values

HEX#2A137F
RGBrgb(42, 19, 127)
HSLhsl(253, 74%, 29%)
HSVhsv(253, 85%, 50%)
CMYKcmyk(66.9%, 85%, 0%, 50.2%)
CIE-LABlab(17.87, 41.56, -55.84)
CIE-LCHlch(17.87, 69.61, 306.66°)
OKLaboklab(31.09% 0.0307 -0.1611)
OKLCHoklch(31.09% 0.164 280.8)
XYZxyz(5.0173, 2.4899, 20.2908)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A137F #687F13
analogous
#13327F #2A137F #60137F
triadic
#2A137F #7F2A13 #137F2A
tetradic
#2A137F #7F1332 #687F13 #137F60
square
#2A137F #7F1332 #687F13 #137F60
split-complementary
#2A137F #7F6013 #327F13
monochromatic
#09041B #180B4A #2A137F #3C1BB4 #532DE0

Accessibility & contrast

On white

14.02
#2A137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A137F
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A137F#FFFFFF#000000##FFFFFF
##2A137F1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.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: #2a137f;
/* rgb */ color: rgb(42, 19, 127);
/* oklch */ color: oklch(31.1% 0.164 280.8);
Tailwind
colors: {
  custom: {
    50: '#7156a5',
    500: '#2a137f',
    950: '#000000',
  },
}
SCSS
$custom: #2a137f;
$custom-light: #7156a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a137f",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 252.778,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31087,
    "c": 0.16405,
    "h": 280.8
  },
  "luminance": 0.0249
}

Semantic roles & 50–950 ramp

primary
#2A137F
secondary
#9AB439
accent
#F137C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A137F

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

Preview Lab → · Contrast checker → · Palette generator →

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