#2D136E#2D136E

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

Color values

HEX#2D136E
RGBrgb(45, 19, 110)
HSLhsl(257, 71%, 25%)
HSVhsv(257, 83%, 43%)
CMYKcmyk(59.1%, 82.7%, 0%, 56.9%)
CIE-LABlab(16.25, 36.75, -47.56)
CIE-LCHlch(16.25, 60.11, 307.69°)
OKLaboklab(29.47% 0.0416 -0.1369)
OKLCHoklch(29.47% 0.143 286.9)
XYZxyz(4.1287, 2.1492, 14.9461)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D136E #546E13
analogous
#13266E #2D136E #5A136E
triadic
#2D136E #6E2D13 #136E2D
tetradic
#2D136E #6E1326 #546E13 #136E5A
square
#2D136E #6E1326 #546E13 #136E5A
split-complementary
#2D136E #6E5A13 #266E13
monochromatic
#0B051A #180A3A #2D136E #421CA2 #5825D6

Accessibility & contrast

On white

14.69
#2D136E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D136E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D136E
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D136E#FFFFFF#000000##FFFFFF
##2D136E1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#0E2E40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d136e;
/* rgb */ color: rgb(45, 19, 110);
/* oklch */ color: oklch(29.5% 0.143 286.9);
Tailwind
colors: {
  custom: {
    50: '#6f5599',
    500: '#2d136e',
    950: '#000000',
  },
}
SCSS
$custom: #2d136e;
$custom-light: #6f5599;
$custom-dark: #000000;
JSON
{
  "hex": "#2d136e",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 110
  },
  "hsl": {
    "h": 257.143,
    "s": 70.543,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29468,
    "c": 0.14311,
    "h": 286.9
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#2D136E
secondary
#86A538
accent
#ED3ABA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D136E

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

Preview Lab → · Contrast checker → · Palette generator →

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