#2D244F#2D244F

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

Color values

HEX#2D244F
RGBrgb(45, 36, 79)
HSLhsl(253, 37%, 23%)
HSVhsv(253, 54%, 31%)
CMYKcmyk(43%, 54.4%, 0%, 69%)
CIE-LABlab(17.39, 16.26, -25.11)
CIE-LCHlch(17.39, 29.92, 302.92°)
OKLaboklab(29.44% 0.0267 -0.0711)
OKLCHoklch(29.44% 0.076 290.6)
XYZxyz(3.1240, 2.3841, 7.6912)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D244F #464F24
analogous
#24314F #2D244F #42244F
triadic
#2D244F #4F2D24 #244F2D
tetradic
#2D244F #4F2431 #464F24 #244F42
square
#2D244F #4F2431 #464F24 #244F42
split-complementary
#2D244F #4F4224 #314F24
monochromatic
#0C0A15 #151125 #2D244F #453779 #5D4AA3

Accessibility & contrast

On white

14.22
#2D244F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2D244F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D244F
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D244F#FFFFFF#000000##FFFFFF
##2D244F1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132B51
Deuteranopia (green-blind)
#142A4E
Tritanopia (blue-blind)
#242D35
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d244f;
/* rgb */ color: rgb(45, 36, 79);
/* oklch */ color: oklch(29.4% 0.076 290.6);
Tailwind
colors: {
  custom: {
    50: '#685e80',
    500: '#2d244f',
    950: '#000000',
  },
}
SCSS
$custom: #2d244f;
$custom-light: #685e80;
$custom-dark: #000000;
JSON
{
  "hex": "#2d244f",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 79
  },
  "hsl": {
    "h": 252.558,
    "s": 37.391,
    "l": 22.549
  },
  "oklch": {
    "l": 0.2944,
    "c": 0.07595,
    "h": 290.6
  },
  "luminance": 0.02384
}

Semantic roles & 50–950 ramp

primary
#2D244F
secondary
#77824C
accent
#CD5AB5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D244F

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

Preview Lab → · Contrast checker → · Palette generator →

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