#2D114A#2D114A

#2D114A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.100 H 302.2°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#2D114A
RGBrgb(45, 17, 74)
HSLhsl(269, 63%, 18%)
HSVhsv(269, 77%, 29%)
CMYKcmyk(39.2%, 77%, 0%, 71%)
CIE-LABlab(12.31, 27.05, -29.86)
CIE-LCHlch(12.31, 40.29, 312.17°)
OKLaboklab(25.6% 0.0535 -0.085)
OKLCHoklch(25.6% 0.1 302.2)
XYZxyz(2.5184, 1.4532, 6.6251)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D114A #2E4A11
analogous
#11114A #2D114A #49114A
triadic
#2D114A #4A2D11 #114A2D
tetradic
#2D114A #4A1111 #2E4A11 #114A49
square
#2D114A #4A1111 #2E4A11 #114A49
split-complementary
#2D114A #4A4911 #114A11
monochromatic
#0F0619 #0F0619 #2D114A #4B1C7C #6A28AE

Accessibility & contrast

On white

16.27
#2D114A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2D114A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D114A
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D114A#FFFFFF#000000##FFFFFF
##2D114A1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#271E2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d114a;
/* rgb */ color: rgb(45, 17, 74);
/* oklch */ color: oklch(25.6% 0.100 302.2);
Tailwind
colors: {
  custom: {
    50: '#69517d',
    500: '#2d114a',
    950: '#000000',
  },
}
SCSS
$custom: #2d114a;
$custom-light: #69517d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d114a",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 74
  },
  "hsl": {
    "h": 269.474,
    "s": 62.637,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25599,
    "c": 0.10046,
    "h": 302.2
  },
  "luminance": 0.01453
}

Semantic roles & 50–950 ramp

primary
#2D114A
secondary
#5C8333
accent
#E64295
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2D114A

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

Preview Lab → · Contrast checker → · Palette generator →

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