#2D254D#2D254D

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

Color values

HEX#2D254D
RGBrgb(45, 37, 77)
HSLhsl(252, 35%, 22%)
HSVhsv(252, 52%, 30%)
CMYKcmyk(41.6%, 51.9%, 0%, 69.8%)
CIE-LABlab(17.54, 14.90, -23.51)
CIE-LCHlch(17.54, 27.84, 302.36°)
OKLaboklab(29.51% 0.0249 -0.0664)
OKLCHoklch(29.51% 0.071 290.6)
XYZxyz(3.0830, 2.4168, 7.3238)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D254D #454D25
analogous
#25314D #2D254D #41254D
triadic
#2D254D #4D2D25 #254D2D
tetradic
#2D254D #4D2531 #454D25 #254D41
square
#2D254D #4D2531 #454D25 #254D41
split-complementary
#2D254D #4D4125 #314D25
monochromatic
#0C0A15 #151124 #2D254D #453976 #5D4DA0

Accessibility & contrast

On white

14.16
#2D254D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D254D
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D254D#FFFFFF#000000##FFFFFF
##2D254D1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162C4E
Deuteranopia (green-blind)
#172A4C
Tritanopia (blue-blind)
#252D35
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d254d;
/* rgb */ color: rgb(45, 37, 77);
/* oklch */ color: oklch(29.5% 0.071 290.6);
Tailwind
colors: {
  custom: {
    50: '#685f7f',
    500: '#2d254d',
    950: '#000000',
  },
}
SCSS
$custom: #2d254d;
$custom-light: #685f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d254d",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 77
  },
  "hsl": {
    "h": 252,
    "s": 35.088,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29511,
    "c": 0.07093,
    "h": 290.6
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#2D254D
secondary
#76804E
accent
#CB5DB5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D254D

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

Preview Lab → · Contrast checker → · Palette generator →

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