#2D144F#2D144F

#2D144F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.103 H 298.5°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#2D144F
RGBrgb(45, 20, 79)
HSLhsl(265, 60%, 19%)
HSVhsv(265, 75%, 31%)
CMYKcmyk(43%, 74.7%, 0%, 69%)
CIE-LABlab(13.37, 26.79, -31.58)
CIE-LCHlch(13.37, 41.41, 310.30°)
OKLaboklab(26.49% 0.049 -0.0901)
OKLCHoklch(26.49% 0.103 298.5)
XYZxyz(2.7433, 1.6227, 7.5643)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D144F #364F14
analogous
#14194F #2D144F #4B144F
triadic
#2D144F #4F2D14 #144F2D
tetradic
#2D144F #4F1419 #364F14 #144F4B
square
#2D144F #4F1419 #364F14 #144F4B
split-complementary
#2D144F #4F4B14 #194F14
monochromatic
#0E0618 #11081E #2D144F #492080 #652DB1

Accessibility & contrast

On white

15.85
#2D144F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2D144F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D144F
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D144F#FFFFFF#000000##FFFFFF
##2D144F1.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#25222F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d144f;
/* rgb */ color: rgb(45, 20, 79);
/* oklch */ color: oklch(26.5% 0.103 298.5);
Tailwind
colors: {
  custom: {
    50: '#6a5381',
    500: '#2d144f',
    950: '#000000',
  },
}
SCSS
$custom: #2d144f;
$custom-light: #6a5381;
$custom-dark: #000000;
JSON
{
  "hex": "#2d144f",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 79
  },
  "hsl": {
    "h": 265.424,
    "s": 59.596,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26494,
    "c": 0.10255,
    "h": 298.5
  },
  "luminance": 0.01623
}

Semantic roles & 50–950 ramp

primary
#2D144F
secondary
#658738
accent
#E345A0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D144F

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

Preview Lab → · Contrast checker → · Palette generator →

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