#2D264D#2D264D

#2D264D is a dark, moderate violet. Relative luminance 0.025; OKLCH L 29.7% C 0.069 H 289.8°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#2D264D
RGBrgb(45, 38, 77)
HSLhsl(251, 34%, 23%)
HSVhsv(251, 51%, 30%)
CMYKcmyk(41.6%, 50.6%, 0%, 69.8%)
CIE-LABlab(17.83, 14.19, -23.05)
CIE-LCHlch(17.83, 27.07, 301.62°)
OKLaboklab(29.73% 0.0234 -0.065)
OKLCHoklch(29.73% 0.069 289.8)
XYZxyz(3.1145, 2.4798, 7.3343)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D264D #464D26
analogous
#26334D #2D264D #40264D
triadic
#2D264D #4D2D26 #264D2D
tetradic
#2D264D #4D2633 #464D26 #264D40
square
#2D264D #4D2633 #464D26 #264D40
split-complementary
#2D264D #4D4026 #334D26
monochromatic
#0C0A14 #151224 #2D264D #453A76 #5D4E9F

Accessibility & contrast

On white

14.04
#2D264D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D264D
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D264D#FFFFFF#000000##FFFFFF
##2D264D1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182C4E
Deuteranopia (green-blind)
#182B4C
Tritanopia (blue-blind)
#252E35
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d264d;
/* rgb */ color: rgb(45, 38, 77);
/* oklch */ color: oklch(29.7% 0.069 289.8);
Tailwind
colors: {
  custom: {
    50: '#68607f',
    500: '#2d264d',
    950: '#000000',
  },
}
SCSS
$custom: #2d264d;
$custom-light: #68607f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d264d",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 77
  },
  "hsl": {
    "h": 250.769,
    "s": 33.913,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29729,
    "c": 0.06912,
    "h": 289.8
  },
  "luminance": 0.0248
}

Semantic roles & 50–950 ramp

primary
#2D264D
secondary
#77804F
accent
#CA5EB7
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D264D

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

Preview Lab → · Contrast checker → · Palette generator →

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