#2F206C#2F206C

#2F206C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.125 H 285.7°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#2F206C
RGBrgb(47, 32, 108)
HSLhsl(252, 54%, 27%)
HSVhsv(252, 70%, 42%)
CMYKcmyk(56.5%, 70.4%, 0%, 57.6%)
CIE-LABlab(18.88, 29.10, -41.93)
CIE-LCHlch(18.88, 51.04, 304.75°)
OKLaboklab(31.32% 0.0339 -0.1205)
OKLCHoklch(31.32% 0.125 285.7)
XYZxyz(4.3948, 2.7198, 14.4779)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F206C #5D6C20
analogous
#20376C #2F206C #55206C
triadic
#2F206C #6C2F20 #206C2F
tetradic
#2F206C #6C2037 #5D6C20 #206C55
square
#2F206C #6C2037 #5D6C20 #206C55
split-complementary
#2F206C #6C5520 #376C20
monochromatic
#0A0718 #1A123D #2F206C #442E9B #5B40C6

Accessibility & contrast

On white

13.60
#2F206C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F206C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F206C
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F206C#FFFFFF#000000##FFFFFF
##2F206C1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f206c;
/* rgb */ color: rgb(47, 32, 108);
/* oklch */ color: oklch(31.3% 0.125 285.7);
Tailwind
colors: {
  custom: {
    50: '#6e5c97',
    500: '#2f206c',
    950: '#000000',
  },
}
SCSS
$custom: #2f206c;
$custom-light: #6e5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#2f206c",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 108
  },
  "hsl": {
    "h": 251.842,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31323,
    "c": 0.12513,
    "h": 285.7
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#2F206C
secondary
#8FA048
accent
#DE4AC1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2F206C

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

Preview Lab → · Contrast checker → · Palette generator →

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