#2D264E#2D264E

#2D264E is a dark, moderate violet. Relative luminance 0.025; OKLCH L 29.8% C 0.071 H 289.4°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#2D264E
RGBrgb(45, 38, 78)
HSLhsl(251, 34%, 23%)
HSVhsv(251, 51%, 31%)
CMYKcmyk(42.3%, 51.3%, 0%, 69.4%)
CIE-LABlab(17.89, 14.52, -23.63)
CIE-LCHlch(17.89, 27.73, 301.57°)
OKLaboklab(29.8% 0.0235 -0.0667)
OKLCHoklch(29.8% 0.071 289.4)
XYZxyz(3.1501, 2.4941, 7.5217)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D264E #474E26
analogous
#26334E #2D264E #41264E
triadic
#2D264E #4E2D26 #264E2D
tetradic
#2D264E #4E2633 #474E26 #264E41
square
#2D264E #4E2633 #474E26 #264E41
split-complementary
#2D264E #4E4126 #334E26
monochromatic
#0C0A15 #151225 #2D264E #453A77 #5C4EA0

Accessibility & contrast

On white

14.01
#2D264E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D264E
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D264E#FFFFFF#000000##FFFFFF
##2D264E1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172D4F
Deuteranopia (green-blind)
#182B4D
Tritanopia (blue-blind)
#242E36
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d264e;
/* rgb */ color: rgb(45, 38, 78);
/* oklch */ color: oklch(29.8% 0.071 289.4);
Tailwind
colors: {
  custom: {
    50: '#686080',
    500: '#2d264e',
    950: '#000000',
  },
}
SCSS
$custom: #2d264e;
$custom-light: #686080;
$custom-dark: #000000;
JSON
{
  "hex": "#2d264e",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 78
  },
  "hsl": {
    "h": 250.5,
    "s": 34.483,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29799,
    "c": 0.07076,
    "h": 289.4
  },
  "luminance": 0.02494
}

Semantic roles & 50–950 ramp

primary
#2D264E
secondary
#78814F
accent
#CB5DB7
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D264E

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

Preview Lab → · Contrast checker → · Palette generator →

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