#2D264C#2D264C

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

Color values

HEX#2D264C
RGBrgb(45, 38, 76)
HSLhsl(251, 33%, 22%)
HSVhsv(251, 50%, 30%)
CMYKcmyk(40.8%, 50%, 0%, 70.2%)
CIE-LABlab(17.76, 13.87, -22.48)
CIE-LCHlch(17.76, 26.41, 301.67°)
OKLaboklab(29.66% 0.0232 -0.0634)
OKLCHoklch(29.66% 0.067 290.1)
XYZxyz(3.0795, 2.4658, 7.1498)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D264C #454C26
analogous
#26324C #2D264C #40264C
triadic
#2D264C #4C2D26 #264C2D
tetradic
#2D264C #4C2632 #454C26 #264C40
square
#2D264C #4C2632 #454C26 #264C40
split-complementary
#2D264C #4C4026 #324C26
monochromatic
#0C0A14 #151223 #2D264C #453A75 #5D4F9E

Accessibility & contrast

On white

14.06
#2D264C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D264C
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D264C#FFFFFF#000000##FFFFFF
##2D264C1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192C4D
Deuteranopia (green-blind)
#192B4B
Tritanopia (blue-blind)
#252D35
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d264c;
/* rgb */ color: rgb(45, 38, 76);
/* oklch */ color: oklch(29.7% 0.067 290.1);
Tailwind
colors: {
  custom: {
    50: '#68607e',
    500: '#2d264c',
    950: '#000000',
  },
}
SCSS
$custom: #2d264c;
$custom-light: #68607e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d264c",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 76
  },
  "hsl": {
    "h": 251.053,
    "s": 33.333,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2966,
    "c": 0.06748,
    "h": 290.1
  },
  "luminance": 0.02466
}

Semantic roles & 50–950 ramp

primary
#2D264C
secondary
#767F4F
accent
#C95EB6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D264C

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

Preview Lab → · Contrast checker → · Palette generator →

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