#2D244E#2D244E

#2D244E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.4% C 0.074 H 291.0°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2D244E
RGBrgb(45, 36, 78)
HSLhsl(253, 37%, 22%)
HSVhsv(253, 54%, 31%)
CMYKcmyk(42.3%, 53.8%, 0%, 69.4%)
CIE-LABlab(17.32, 15.93, -24.54)
CIE-LCHlch(17.32, 29.26, 302.98°)
OKLaboklab(29.37% 0.0266 -0.0694)
OKLCHoklch(29.37% 0.074 291)
XYZxyz(3.0878, 2.3696, 7.5009)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D244E #454E24
analogous
#24304E #2D244E #42244E
triadic
#2D244E #4E2D24 #244E2D
tetradic
#2D244E #4E2430 #454E24 #244E42
square
#2D244E #4E2430 #454E24 #244E42
split-complementary
#2D244E #4E4224 #304E24
monochromatic
#0C0A15 #151124 #2D244E #453778 #5D4BA2

Accessibility & contrast

On white

14.25
#2D244E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2D244E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D244E
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D244E#FFFFFF#000000##FFFFFF
##2D244E1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142B4F
Deuteranopia (green-blind)
#152A4D
Tritanopia (blue-blind)
#242C35
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d244e;
/* rgb */ color: rgb(45, 36, 78);
/* oklch */ color: oklch(29.4% 0.074 291.0);
Tailwind
colors: {
  custom: {
    50: '#685e80',
    500: '#2d244e',
    950: '#000000',
  },
}
SCSS
$custom: #2d244e;
$custom-light: #685e80;
$custom-dark: #000000;
JSON
{
  "hex": "#2d244e",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 78
  },
  "hsl": {
    "h": 252.857,
    "s": 36.842,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29368,
    "c": 0.07433,
    "h": 291
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#2D244E
secondary
#76814C
accent
#CD5BB4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D244E

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

Preview Lab → · Contrast checker → · Palette generator →

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