#2A136F#2A136F

#2A136F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.145 H 284.5°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#2A136F
RGBrgb(42, 19, 111)
HSLhsl(255, 71%, 25%)
HSVhsv(255, 83%, 44%)
CMYKcmyk(62.2%, 82.9%, 0%, 56.5%)
CIE-LABlab(16.03, 36.66, -48.59)
CIE-LCHlch(16.03, 60.87, 307.04°)
OKLaboklab(29.27% 0.0362 -0.14)
OKLCHoklch(29.27% 0.145 284.5)
XYZxyz(4.0561, 2.1054, 15.2285)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A136F #586F13
analogous
#132A6F #2A136F #58136F
triadic
#2A136F #6F2A13 #136F2A
tetradic
#2A136F #6F132A #586F13 #136F58
square
#2A136F #6F132A #586F13 #136F58
split-complementary
#2A136F #6F5813 #2A6F13
monochromatic
#0A041A #160A3B #2A136F #3E1CA3 #5225D8

Accessibility & contrast

On white

14.78
#2A136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A136F
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A136F#FFFFFF#000000##FFFFFF
##2A136F1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a136f;
/* rgb */ color: rgb(42, 19, 111);
/* oklch */ color: oklch(29.3% 0.145 284.5);
Tailwind
colors: {
  custom: {
    50: '#6e5499',
    500: '#2a136f',
    950: '#000000',
  },
}
SCSS
$custom: #2a136f;
$custom-light: #6e5499;
$custom-dark: #000000;
JSON
{
  "hex": "#2a136f",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 255,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29269,
    "c": 0.14465,
    "h": 284.5
  },
  "luminance": 0.02106
}

Semantic roles & 50–950 ramp

primary
#2A136F
secondary
#8AA638
accent
#EE3AC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A136F

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

Preview Lab → · Contrast checker → · Palette generator →

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