#2D254E#2D254E

#2D254E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.6% C 0.073 H 290.2°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#2D254E
RGBrgb(45, 37, 78)
HSLhsl(252, 36%, 23%)
HSVhsv(252, 53%, 31%)
CMYKcmyk(42.3%, 52.6%, 0%, 69.4%)
CIE-LABlab(17.60, 15.23, -24.09)
CIE-LCHlch(17.60, 28.50, 302.30°)
OKLaboklab(29.58% 0.0251 -0.0681)
OKLCHoklch(29.58% 0.073 290.2)
XYZxyz(3.1185, 2.4310, 7.5112)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D254E #464E25
analogous
#25324E #2D254E #41254E
triadic
#2D254E #4E2D25 #254E2D
tetradic
#2D254E #4E2532 #464E25 #254E41
square
#2D254E #4E2532 #464E25 #254E41
split-complementary
#2D254E #4E4125 #324E25
monochromatic
#0C0A15 #151124 #2D254E #453978 #5D4CA1

Accessibility & contrast

On white

14.13
#2D254E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D254E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D254E
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D254E#FFFFFF#000000##FFFFFF
##2D254E1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162C4F
Deuteranopia (green-blind)
#162A4D
Tritanopia (blue-blind)
#242D35
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d254e;
/* rgb */ color: rgb(45, 37, 78);
/* oklch */ color: oklch(29.6% 0.073 290.2);
Tailwind
colors: {
  custom: {
    50: '#685f80',
    500: '#2d254e',
    950: '#000000',
  },
}
SCSS
$custom: #2d254e;
$custom-light: #685f80;
$custom-dark: #000000;
JSON
{
  "hex": "#2d254e",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 78
  },
  "hsl": {
    "h": 251.707,
    "s": 35.652,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29582,
    "c": 0.07255,
    "h": 290.2
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#2D254E
secondary
#77814E
accent
#CC5CB6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D254E

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

Preview Lab → · Contrast checker → · Palette generator →

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