#2D114E#2D114E

#2D114E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.106 H 300.0°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#2D114E
RGBrgb(45, 17, 78)
HSLhsl(268, 64%, 19%)
HSVhsv(268, 78%, 31%)
CMYKcmyk(42.3%, 78.2%, 0%, 69.4%)
CIE-LABlab(12.66, 28.20, -32.04)
CIE-LCHlch(12.66, 42.69, 311.36°)
OKLaboklab(25.96% 0.0528 -0.0914)
OKLCHoklch(25.96% 0.106 300)
XYZxyz(2.6574, 1.5088, 7.3575)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D114E #324E11
analogous
#11134E #2D114E #4B114E
triadic
#2D114E #4E2D11 #114E2D
tetradic
#2D114E #4E1113 #324E11 #114E4B
square
#2D114E #4E1113 #324E11 #114E4B
split-complementary
#2D114E #4E4B11 #134E11
monochromatic
#0E0519 #10061C #2D114E #4A1C80 #6727B2

Accessibility & contrast

On white

16.13
#2D114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2D114E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D114E
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D114E#FFFFFF#000000##FFFFFF
##2D114E1.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#25202E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d114e;
/* rgb */ color: rgb(45, 17, 78);
/* oklch */ color: oklch(26.0% 0.106 300.0);
Tailwind
colors: {
  custom: {
    50: '#6a5280',
    500: '#2d114e',
    950: '#000000',
  },
}
SCSS
$custom: #2d114e;
$custom-light: #6a5280;
$custom-dark: #000000;
JSON
{
  "hex": "#2d114e",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 267.541,
    "s": 64.211,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25964,
    "c": 0.10555,
    "h": 300
  },
  "luminance": 0.01509
}

Semantic roles & 50–950 ramp

primary
#2D114E
secondary
#618733
accent
#E7419B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D114E

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

Preview Lab → · Contrast checker → · Palette generator →

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