#2D264F#2D264F

#2D264F is a dark, moderate violet. Relative luminance 0.025; OKLCH L 29.9% C 0.072 H 289.1°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2D264F
RGBrgb(45, 38, 79)
HSLhsl(250, 35%, 23%)
HSVhsv(250, 52%, 31%)
CMYKcmyk(43%, 51.9%, 0%, 69%)
CIE-LABlab(17.96, 14.85, -24.20)
CIE-LCHlch(17.96, 28.40, 301.54°)
OKLaboklab(29.87% 0.0237 -0.0684)
OKLCHoklch(29.87% 0.072 289.1)
XYZxyz(3.1862, 2.5085, 7.7119)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D264F #484F26
analogous
#26334F #2D264F #41264F
triadic
#2D264F #4F2D26 #264F2D
tetradic
#2D264F #4F2633 #484F26 #264F41
square
#2D264F #4F2633 #484F26 #264F41
split-complementary
#2D264F #4F4126 #334F26
monochromatic
#0C0A15 #151226 #2D264F #453A78 #5C4EA2

Accessibility & contrast

On white

13.98
#2D264F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2D264F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D264F
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D264F#FFFFFF#000000##FFFFFF
##2D264F1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172D50
Deuteranopia (green-blind)
#172B4E
Tritanopia (blue-blind)
#242E36
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d264f;
/* rgb */ color: rgb(45, 38, 79);
/* oklch */ color: oklch(29.9% 0.072 289.1);
Tailwind
colors: {
  custom: {
    50: '#686080',
    500: '#2d264f',
    950: '#000000',
  },
}
SCSS
$custom: #2d264f;
$custom-light: #686080;
$custom-dark: #000000;
JSON
{
  "hex": "#2d264f",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 79
  },
  "hsl": {
    "h": 250.244,
    "s": 35.043,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29869,
    "c": 0.0724,
    "h": 289.1
  },
  "luminance": 0.02509
}

Semantic roles & 50–950 ramp

primary
#2D264F
secondary
#79824F
accent
#CB5DB8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D264F

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

Preview Lab → · Contrast checker → · Palette generator →

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