#2F226A#2F226A

#2F226A is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.5% C 0.120 H 285.5°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#2F226A
RGBrgb(47, 34, 106)
HSLhsl(251, 51%, 27%)
HSVhsv(251, 68%, 42%)
CMYKcmyk(55.7%, 67.9%, 0%, 58.4%)
CIE-LABlab(19.18, 27.16, -40.16)
CIE-LCHlch(19.18, 48.48, 304.07°)
OKLaboklab(31.48% 0.032 -0.1152)
OKLCHoklch(31.48% 0.12 285.5)
XYZxyz(4.3451, 2.7888, 13.9422)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F226A #5D6A22
analogous
#22396A #2F226A #53226A
triadic
#2F226A #6A2F22 #226A2F
tetradic
#2F226A #6A2239 #5D6A22 #226A53
square
#2F226A #6A2239 #5D6A22 #226A53
split-complementary
#2F226A #6A5322 #396A22
monochromatic
#0A0717 #1A133C #2F226A #443198 #5B44C3

Accessibility & contrast

On white

13.48
#2F226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F226A
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F226A#FFFFFF#000000##FFFFFF
##2F226A1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#173442
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f226a;
/* rgb */ color: rgb(47, 34, 106);
/* oklch */ color: oklch(31.5% 0.120 285.5);
Tailwind
colors: {
  custom: {
    50: '#6e5e95',
    500: '#2f226a',
    950: '#000000',
  },
}
SCSS
$custom: #2f226a;
$custom-light: #6e5e95;
$custom-dark: #000000;
JSON
{
  "hex": "#2f226a",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 250.833,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31479,
    "c": 0.11961,
    "h": 285.5
  },
  "luminance": 0.02789
}

Semantic roles & 50–950 ramp

primary
#2F226A
secondary
#8F9E4A
accent
#DB4DC1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2F226A

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

Preview Lab → · Contrast checker → · Palette generator →

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