#2D114B#2D114B

#2D114B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.102 H 301.6°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#2D114B
RGBrgb(45, 17, 75)
HSLhsl(269, 63%, 18%)
HSVhsv(269, 77%, 29%)
CMYKcmyk(40%, 77.3%, 0%, 70.6%)
CIE-LABlab(12.40, 27.33, -30.41)
CIE-LCHlch(12.40, 40.89, 311.95°)
OKLaboklab(25.69% 0.0534 -0.0866)
OKLCHoklch(25.69% 0.102 301.6)
XYZxyz(2.5523, 1.4668, 6.8039)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D114B #2F4B11
analogous
#11124B #2D114B #4A114B
triadic
#2D114B #4B2D11 #114B2D
tetradic
#2D114B #4B1112 #2F4B11 #114B4A
square
#2D114B #4B1112 #2F4B11 #114B4A
split-complementary
#2D114B #4B4A11 #124B11
monochromatic
#0F0619 #0F0619 #2D114B #4B1C7D #6928AF

Accessibility & contrast

On white

16.24
#2D114B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D114B
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D114B#FFFFFF#000000##FFFFFF
##2D114B1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#271F2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d114b;
/* rgb */ color: rgb(45, 17, 75);
/* oklch */ color: oklch(25.7% 0.102 301.6);
Tailwind
colors: {
  custom: {
    50: '#69517e',
    500: '#2d114b',
    950: '#000000',
  },
}
SCSS
$custom: #2d114b;
$custom-light: #69517e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d114b",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 75
  },
  "hsl": {
    "h": 268.966,
    "s": 63.043,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25689,
    "c": 0.10174,
    "h": 301.6
  },
  "luminance": 0.01467
}

Semantic roles & 50–950 ramp

primary
#2D114B
secondary
#5D8433
accent
#E64297
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D114B

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

Preview Lab → · Contrast checker → · Palette generator →

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