#2F2057#2F2057

#2F2057 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.095 H 292.1°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#2F2057
RGBrgb(47, 32, 87)
HSLhsl(256, 46%, 23%)
HSVhsv(256, 63%, 34%)
CMYKcmyk(46%, 63.2%, 0%, 65.9%)
CIE-LABlab(17.11, 22.17, -30.94)
CIE-LCHlch(17.11, 38.07, 305.62°)
OKLaboklab(29.48% 0.0358 -0.0882)
OKLCHoklch(29.48% 0.095 292.1)
XYZxyz(3.4086, 2.3254, 9.2842)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2057 #485720
analogous
#202C57 #2F2057 #4A2057
triadic
#2F2057 #572F20 #20572F
tetradic
#2F2057 #57202C #485720 #20574A
square
#2F2057 #57202C #485720 #20574A
split-complementary
#2F2057 #574A20 #2C5720
monochromatic
#0C0816 #17102A #2F2057 #473084 #5F41B0

Accessibility & contrast

On white

14.33
#2F2057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F2057 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2057
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2057#FFFFFF#000000##FFFFFF
##2F20571.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B59
Deuteranopia (green-blind)
#042956
Tritanopia (blue-blind)
#242C38
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f2057;
/* rgb */ color: rgb(47, 32, 87);
/* oklch */ color: oklch(29.5% 0.095 292.1);
Tailwind
colors: {
  custom: {
    50: '#6b5c87',
    500: '#2f2057',
    950: '#000000',
  },
}
SCSS
$custom: #2f2057;
$custom-light: #6b5c87;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2057",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 87
  },
  "hsl": {
    "h": 256.364,
    "s": 46.218,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29475,
    "c": 0.09515,
    "h": 292.1
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#2F2057
secondary
#798B47
accent
#D652B2
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2F2057

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

Preview Lab → · Contrast checker → · Palette generator →

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