#2D114F#2D114F

#2D114F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.107 H 299.5°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#2D114F
RGBrgb(45, 17, 79)
HSLhsl(267, 65%, 19%)
HSVhsv(267, 78%, 31%)
CMYKcmyk(43%, 78.5%, 0%, 69%)
CIE-LABlab(12.76, 28.50, -32.58)
CIE-LCHlch(12.76, 43.28, 311.17°)
OKLaboklab(26.06% 0.0525 -0.093)
OKLCHoklch(26.06% 0.107 299.5)
XYZxyz(2.6936, 1.5233, 7.5477)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D114F #334F11
analogous
#11144F #2D114F #4C114F
triadic
#2D114F #4F2D11 #114F2D
tetradic
#2D114F #4F1114 #334F11 #114F4C
square
#2D114F #4F1114 #334F11 #114F4C
split-complementary
#2D114F #4F4C11 #144F11
monochromatic
#0E0519 #10061D #2D114F #4A1C81 #6627B4

Accessibility & contrast

On white

16.10
#2D114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D114F
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D114F#FFFFFF#000000##FFFFFF
##2D114F1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#25202E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d114f;
/* rgb */ color: rgb(45, 17, 79);
/* oklch */ color: oklch(26.1% 0.107 299.5);
Tailwind
colors: {
  custom: {
    50: '#6a5281',
    500: '#2d114f',
    950: '#000000',
  },
}
SCSS
$custom: #2d114f;
$custom-light: #6a5281;
$custom-dark: #000000;
JSON
{
  "hex": "#2d114f",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 267.097,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26058,
    "c": 0.10681,
    "h": 299.5
  },
  "luminance": 0.01523
}

Semantic roles & 50–950 ramp

primary
#2D114F
secondary
#628833
accent
#E8409C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D114F

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

Preview Lab → · Contrast checker → · Palette generator →

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