#2F206F#2F206F

#2F206F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.129 H 285.0°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#2F206F
RGBrgb(47, 32, 111)
HSLhsl(251, 55%, 28%)
HSVhsv(251, 71%, 44%)
CMYKcmyk(57.7%, 71.2%, 0%, 56.5%)
CIE-LABlab(19.16, 30.09, -43.43)
CIE-LCHlch(19.16, 52.84, 304.72°)
OKLaboklab(31.61% 0.0334 -0.1249)
OKLCHoklch(31.61% 0.129 285)
XYZxyz(4.5572, 2.7848, 15.3332)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F206F #606F20
analogous
#20396F #2F206F #56206F
triadic
#2F206F #6F2F20 #206F2F
tetradic
#2F206F #6F2039 #606F20 #206F56
square
#2F206F #6F2039 #606F20 #206F56
split-complementary
#2F206F #6F5620 #396F20
monochromatic
#0A0718 #1B123F #2F206F #432E9F #5B41C8

Accessibility & contrast

On white

13.49
#2F206F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F206F
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F206F#FFFFFF#000000##FFFFFF
##2F206F1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#123444
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f206f;
/* rgb */ color: rgb(47, 32, 111);
/* oklch */ color: oklch(31.6% 0.129 285.0);
Tailwind
colors: {
  custom: {
    50: '#6f5d99',
    500: '#2f206f',
    950: '#000000',
  },
}
SCSS
$custom: #2f206f;
$custom-light: #6f5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#2f206f",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 111
  },
  "hsl": {
    "h": 251.392,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31607,
    "c": 0.12925,
    "h": 285
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#2F206F
secondary
#92A348
accent
#DF49C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F206F

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

Preview Lab → · Contrast checker → · Palette generator →

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