#2A136E#2A136E

#2A136E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.143 H 284.8°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2A136E
RGBrgb(42, 19, 110)
HSLhsl(255, 71%, 25%)
HSVhsv(255, 83%, 43%)
CMYKcmyk(61.8%, 82.7%, 0%, 56.9%)
CIE-LABlab(15.92, 36.35, -48.12)
CIE-LCHlch(15.92, 60.31, 307.07°)
OKLaboklab(29.16% 0.0366 -0.1387)
OKLCHoklch(29.16% 0.143 284.8)
XYZxyz(4.0013, 2.0835, 14.9401)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A136E #576E13
analogous
#13296E #2A136E #57136E
triadic
#2A136E #6E2A13 #136E2A
tetradic
#2A136E #6E1329 #576E13 #136E57
square
#2A136E #6E1329 #576E13 #136E57
split-complementary
#2A136E #6E5713 #296E13
monochromatic
#0A051A #160A3A #2A136E #3E1CA2 #5225D6

Accessibility & contrast

On white

14.82
#2A136E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A136E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A136E
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A136E#FFFFFF#000000##FFFFFF
##2A136E1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#022E40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a136e;
/* rgb */ color: rgb(42, 19, 110);
/* oklch */ color: oklch(29.2% 0.143 284.8);
Tailwind
colors: {
  custom: {
    50: '#6d5499',
    500: '#2a136e',
    950: '#000000',
  },
}
SCSS
$custom: #2a136e;
$custom-light: #6d5499;
$custom-dark: #000000;
JSON
{
  "hex": "#2a136e",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 110
  },
  "hsl": {
    "h": 255.165,
    "s": 70.543,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29158,
    "c": 0.14341,
    "h": 284.8
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#2A136E
secondary
#89A538
accent
#ED3AC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A136E

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

Preview Lab → · Contrast checker → · Palette generator →

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