#2F2267#2F2267

#2F2267 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.2% C 0.115 H 286.3°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2F2267
RGBrgb(47, 34, 103)
HSLhsl(251, 50%, 27%)
HSVhsv(251, 67%, 40%)
CMYKcmyk(54.4%, 67%, 0%, 59.6%)
CIE-LABlab(18.92, 26.15, -38.62)
CIE-LCHlch(18.92, 46.64, 304.10°)
OKLaboklab(31.21% 0.0323 -0.1107)
OKLCHoklch(31.21% 0.115 286.3)
XYZxyz(4.1918, 2.7275, 13.1349)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2267 #5A6722
analogous
#223867 #2F2267 #522267
triadic
#2F2267 #672F22 #22672F
tetradic
#2F2267 #672238 #5A6722 #226752
square
#2F2267 #672238 #5A6722 #226752
split-complementary
#2F2267 #675222 #386722
monochromatic
#0A0817 #1A1339 #2F2267 #443195 #5A43C1

Accessibility & contrast

On white

13.59
#2F2267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F2267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2267
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2267#FFFFFF#000000##FFFFFF
##2F22671.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003069
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#1A3341
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f2267;
/* rgb */ color: rgb(47, 34, 103);
/* oklch */ color: oklch(31.2% 0.115 286.3);
Tailwind
colors: {
  custom: {
    50: '#6d5e93',
    500: '#2f2267',
    950: '#000000',
  },
}
SCSS
$custom: #2f2267;
$custom-light: #6d5e93;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2267",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 103
  },
  "hsl": {
    "h": 251.304,
    "s": 50.365,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31209,
    "c": 0.11535,
    "h": 286.3
  },
  "luminance": 0.02728
}

Semantic roles & 50–950 ramp

primary
#2F2267
secondary
#8C9B4A
accent
#DA4EC0
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2F2267

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

Preview Lab → · Contrast checker → · Palette generator →

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