#2F2245#2F2245

#2F2245 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.5% C 0.064 H 299.5°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#2F2245
RGBrgb(47, 34, 69)
HSLhsl(262, 34%, 20%)
HSVhsv(262, 51%, 27%)
CMYKcmyk(31.9%, 50.7%, 0%, 72.9%)
CIE-LABlab(16.39, 15.12, -19.83)
CIE-LCHlch(16.39, 24.94, 307.33°)
OKLaboklab(28.54% 0.0314 -0.0556)
OKLCHoklch(28.54% 0.064 299.5)
XYZxyz(2.8182, 2.1780, 5.9010)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2245 #384522
analogous
#222645 #2F2245 #412245
triadic
#2F2245 #452F22 #22452F
tetradic
#2F2245 #452226 #384522 #224541
square
#2F2245 #452226 #384522 #224541
split-complementary
#2F2245 #454122 #264522
monochromatic
#0E0A14 #130E1C #2F2245 #4B366E #674A97

Accessibility & contrast

On white

14.63
#2F2245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2F2245 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2245
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2245#FFFFFF#000000##FFFFFF
##2F22451.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182946
Deuteranopia (green-blind)
#1A2844
Tritanopia (blue-blind)
#2B2830
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f2245;
/* rgb */ color: rgb(47, 34, 69);
/* oklch */ color: oklch(28.5% 0.064 299.5);
Tailwind
colors: {
  custom: {
    50: '#695d79',
    500: '#2f2245',
    950: '#000000',
  },
}
SCSS
$custom: #2f2245;
$custom-light: #695d79;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2245",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 69
  },
  "hsl": {
    "h": 262.286,
    "s": 33.981,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2854,
    "c": 0.06386,
    "h": 299.5
  },
  "luminance": 0.02178
}

Semantic roles & 50–950 ramp

primary
#2F2245
secondary
#67794A
accent
#CA5EA2
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060409
muted
#7A797B

Preview Lab

Preview with #2F2245

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

Preview Lab → · Contrast checker → · Palette generator →

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