#2F2145#2F2145

#2F2145 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.3% C 0.066 H 300.2°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#2F2145
RGBrgb(47, 33, 69)
HSLhsl(263, 35%, 20%)
HSVhsv(263, 52%, 27%)
CMYKcmyk(31.9%, 52.2%, 0%, 72.9%)
CIE-LABlab(16.11, 15.82, -20.28)
CIE-LCHlch(16.11, 25.72, 307.96°)
OKLaboklab(28.33% 0.0331 -0.0569)
OKLCHoklch(28.33% 0.066 300.2)
XYZxyz(2.7901, 2.1217, 5.8916)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2145 #374521
analogous
#212545 #2F2145 #412145
triadic
#2F2145 #452F21 #21452F
tetradic
#2F2145 #452125 #374521 #214541
square
#2F2145 #452125 #374521 #214541
split-complementary
#2F2145 #454121 #254521
monochromatic
#0E0A15 #130D1C #2F2145 #4B356E #674998

Accessibility & contrast

On white

14.74
#2F2145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F2145 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2145
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2145#FFFFFF#000000##FFFFFF
##2F21451.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162846
Deuteranopia (green-blind)
#192844
Tritanopia (blue-blind)
#2B272F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f2145;
/* rgb */ color: rgb(47, 33, 69);
/* oklch */ color: oklch(28.3% 0.066 300.2);
Tailwind
colors: {
  custom: {
    50: '#695c79',
    500: '#2f2145',
    950: '#000000',
  },
}
SCSS
$custom: #2f2145;
$custom-light: #695c79;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2145",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 69
  },
  "hsl": {
    "h": 263.333,
    "s": 35.294,
    "l": 20
  },
  "oklch": {
    "l": 0.28329,
    "c": 0.06581,
    "h": 300.2
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#2F2145
secondary
#667949
accent
#CB5CA0
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060409
muted
#7A797B

Preview Lab

Preview with #2F2145

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

Preview Lab → · Contrast checker → · Palette generator →

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