#2D254F#2D254F

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

Color values

HEX#2D254F
RGBrgb(45, 37, 79)
HSLhsl(251, 36%, 23%)
HSVhsv(251, 53%, 31%)
CMYKcmyk(43%, 53.2%, 0%, 69%)
CIE-LABlab(17.67, 15.56, -24.66)
CIE-LCHlch(17.67, 29.16, 302.25°)
OKLaboklab(29.65% 0.0252 -0.0698)
OKLCHoklch(29.65% 0.074 289.9)
XYZxyz(3.1547, 2.4454, 7.7014)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D254F #474F25
analogous
#25324F #2D254F #42254F
triadic
#2D254F #4F2D25 #254F2D
tetradic
#2D254F #4F2532 #474F25 #254F42
square
#2D254F #4F2532 #474F25 #254F42
split-complementary
#2D254F #4F4225 #324F25
monochromatic
#0C0A15 #151125 #2D254F #453979 #5C4CA2

Accessibility & contrast

On white

14.10
#2D254F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D254F
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D254F#FFFFFF#000000##FFFFFF
##2D254F1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152C51
Deuteranopia (green-blind)
#152A4E
Tritanopia (blue-blind)
#242D36
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d254f;
/* rgb */ color: rgb(45, 37, 79);
/* oklch */ color: oklch(29.7% 0.074 289.9);
Tailwind
colors: {
  custom: {
    50: '#685f80',
    500: '#2d254f',
    950: '#000000',
  },
}
SCSS
$custom: #2d254f;
$custom-light: #685f80;
$custom-dark: #000000;
JSON
{
  "hex": "#2d254f",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 79
  },
  "hsl": {
    "h": 251.429,
    "s": 36.207,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29653,
    "c": 0.07418,
    "h": 289.9
  },
  "luminance": 0.02446
}

Semantic roles & 50–950 ramp

primary
#2D254F
secondary
#78824E
accent
#CC5CB7
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D254F

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

Preview Lab → · Contrast checker → · Palette generator →

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