#2D254C#2D254C

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

Color values

HEX#2D254C
RGBrgb(45, 37, 76)
HSLhsl(252, 35%, 22%)
HSVhsv(252, 51%, 30%)
CMYKcmyk(40.8%, 51.3%, 0%, 70.2%)
CIE-LABlab(17.47, 14.57, -22.94)
CIE-LCHlch(17.47, 27.17, 302.43°)
OKLaboklab(29.44% 0.0248 -0.0647)
OKLCHoklch(29.44% 0.069 291)
XYZxyz(3.0479, 2.4027, 7.1393)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D254C #444C25
analogous
#25314C #2D254C #41254C
triadic
#2D254C #4C2D25 #254C2D
tetradic
#2D254C #4C2531 #444C25 #254C41
square
#2D254C #4C2531 #444C25 #254C41
split-complementary
#2D254C #4C4125 #314C25
monochromatic
#0C0A15 #151123 #2D254C #453975 #5E4D9E

Accessibility & contrast

On white

14.18
#2D254C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D254C
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D254C#FFFFFF#000000##FFFFFF
##2D254C1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172C4D
Deuteranopia (green-blind)
#182A4B
Tritanopia (blue-blind)
#252D34
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d254c;
/* rgb */ color: rgb(45, 37, 76);
/* oklch */ color: oklch(29.4% 0.069 291.0);
Tailwind
colors: {
  custom: {
    50: '#685f7e',
    500: '#2d254c',
    950: '#000000',
  },
}
SCSS
$custom: #2d254c;
$custom-light: #685f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d254c",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 76
  },
  "hsl": {
    "h": 252.308,
    "s": 34.513,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29441,
    "c": 0.0693,
    "h": 291
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#2D254C
secondary
#757F4E
accent
#CB5DB4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D254C

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

Preview Lab → · Contrast checker → · Palette generator →

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