#2D114C#2D114C

#2D114C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.103 H 301.1°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#2D114C
RGBrgb(45, 17, 76)
HSLhsl(268, 63%, 18%)
HSVhsv(268, 78%, 30%)
CMYKcmyk(40.8%, 77.6%, 0%, 70.2%)
CIE-LABlab(12.48, 27.62, -30.95)
CIE-LCHlch(12.48, 41.49, 311.74°)
OKLaboklab(25.78% 0.0532 -0.0882)
OKLCHoklch(25.78% 0.103 301.1)
XYZxyz(2.5868, 1.4806, 6.9856)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D114C #304C11
analogous
#11124C #2D114C #4A114C
triadic
#2D114C #4C2D11 #114C2D
tetradic
#2D114C #4C1112 #304C11 #114C4A
square
#2D114C #4C1112 #304C11 #114C4A
split-complementary
#2D114C #4C4A11 #124C11
monochromatic
#0F0619 #0F061A #2D114C #4B1C7E #6827B0

Accessibility & contrast

On white

16.20
#2D114C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D114C
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D114C#FFFFFF#000000##FFFFFF
##2D114C1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#261F2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d114c;
/* rgb */ color: rgb(45, 17, 76);
/* oklch */ color: oklch(25.8% 0.103 301.1);
Tailwind
colors: {
  custom: {
    50: '#69527f',
    500: '#2d114c',
    950: '#000000',
  },
}
SCSS
$custom: #2d114c;
$custom-light: #69527f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d114c",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 76
  },
  "hsl": {
    "h": 268.475,
    "s": 63.441,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2578,
    "c": 0.10301,
    "h": 301.1
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

primary
#2D114C
secondary
#5E8533
accent
#E64198
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D114C

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

Preview Lab → · Contrast checker → · Palette generator →

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