#2D124F#2D124F

#2D124F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.105 H 299.2°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#2D124F
RGBrgb(45, 18, 79)
HSLhsl(267, 63%, 19%)
HSVhsv(267, 77%, 31%)
CMYKcmyk(43%, 77.2%, 0%, 69%)
CIE-LABlab(12.95, 27.94, -32.26)
CIE-LCHlch(12.95, 42.67, 310.90°)
OKLaboklab(26.2% 0.0514 -0.0921)
OKLCHoklch(26.2% 0.105 299.2)
XYZxyz(2.7094, 1.5550, 7.5530)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D124F #344F12
analogous
#12164F #2D124F #4C124F
triadic
#2D124F #4F2D12 #124F2D
tetradic
#2D124F #4F1216 #344F12 #124F4C
square
#2D124F #4F1216 #344F12 #124F4C
split-complementary
#2D124F #4F4C12 #164F12
monochromatic
#0E0619 #11071D #2D124F #491D81 #6629B3

Accessibility & contrast

On white

16.02
#2D124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2D124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D124F
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D124F#FFFFFF#000000##FFFFFF
##2D124F1.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d124f;
/* rgb */ color: rgb(45, 18, 79);
/* oklch */ color: oklch(26.2% 0.105 299.2);
Tailwind
colors: {
  custom: {
    50: '#6a5281',
    500: '#2d124f',
    950: '#000000',
  },
}
SCSS
$custom: #2d124f;
$custom-light: #6a5281;
$custom-dark: #000000;
JSON
{
  "hex": "#2d124f",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 266.557,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26198,
    "c": 0.10543,
    "h": 299.2
  },
  "luminance": 0.01555
}

Semantic roles & 50–950 ramp

primary
#2D124F
secondary
#638835
accent
#E6429D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D124F

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

Preview Lab → · Contrast checker → · Palette generator →

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