#2D118E#2D118E

#2D118E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.9% C 0.182 H 279.8°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#2D118E
RGBrgb(45, 17, 142)
HSLhsl(253, 79%, 31%)
HSVhsv(253, 88%, 56%)
CMYKcmyk(68.3%, 88%, 0%, 44.3%)
CIE-LABlab(19.69, 47.06, -62.27)
CIE-LCHlch(19.69, 78.06, 307.08°)
OKLaboklab(32.92% 0.0309 -0.1797)
OKLCHoklch(32.92% 0.182 279.8)
XYZxyz(6.1636, 2.9113, 25.8231)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D118E #728E11
analogous
#11338E #2D118E #6B118E
triadic
#2D118E #8E2D11 #118E2D
tetradic
#2D118E #8E1133 #728E11 #118E6B
square
#2D118E #8E1133 #728E11 #118E6B
split-complementary
#2D118E #8E6B11 #338E11
monochromatic
#0A0421 #1C0A57 #2D118E #3E18C5 #5B33E7

Accessibility & contrast

On white

13.27
#2D118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2D118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D118E
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D118E#FFFFFF#000000##FFFFFF
##2D118E1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#002B8C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d118e;
/* rgb */ color: rgb(45, 17, 142);
/* oklch */ color: oklch(32.9% 0.182 279.8);
Tailwind
colors: {
  custom: {
    50: '#7656b0',
    500: '#2d118e',
    950: '#000000',
  },
}
SCSS
$custom: #2d118e;
$custom-light: #7656b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d118e",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 253.44,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32924,
    "c": 0.18238,
    "h": 279.8
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#2D118E
secondary
#A3C238
accent
#F533CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2D118E

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

Preview Lab → · Contrast checker → · Palette generator →

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