#2F206D#2F206D

#2F206D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.127 H 285.5°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#2F206D
RGBrgb(47, 32, 109)
HSLhsl(252, 55%, 28%)
HSVhsv(252, 71%, 43%)
CMYKcmyk(56.9%, 70.6%, 0%, 57.3%)
CIE-LABlab(18.98, 29.43, -42.44)
CIE-LCHlch(18.98, 51.64, 304.74°)
OKLaboklab(31.42% 0.0337 -0.1219)
OKLCHoklch(31.42% 0.127 285.5)
XYZxyz(4.4483, 2.7412, 14.7598)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F206D #5E6D20
analogous
#20386D #2F206D #55206D
triadic
#2F206D #6D2F20 #206D2F
tetradic
#2F206D #6D2038 #5E6D20 #206D55
square
#2F206D #6D2038 #5E6D20 #206D55
split-complementary
#2F206D #6D5520 #386D20
monochromatic
#0A0718 #1B123E #2F206D #432E9C #5B40C7

Accessibility & contrast

On white

13.56
#2F206D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F206D
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F206D#FFFFFF#000000##FFFFFF
##2F206D1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#143443
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f206d;
/* rgb */ color: rgb(47, 32, 109);
/* oklch */ color: oklch(31.4% 0.127 285.5);
Tailwind
colors: {
  custom: {
    50: '#6f5c98',
    500: '#2f206d',
    950: '#000000',
  },
}
SCSS
$custom: #2f206d;
$custom-light: #6f5c98;
$custom-dark: #000000;
JSON
{
  "hex": "#2f206d",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 109
  },
  "hsl": {
    "h": 251.688,
    "s": 54.61,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31417,
    "c": 0.12651,
    "h": 285.5
  },
  "luminance": 0.02741
}

Semantic roles & 50–950 ramp

primary
#2F206D
secondary
#90A148
accent
#DE4AC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F206D

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

Preview Lab → · Contrast checker → · Palette generator →

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