#2F274F#2F274F

#2F274F is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.3% C 0.071 H 290.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#2F274F
RGBrgb(47, 39, 79)
HSLhsl(252, 34%, 23%)
HSVhsv(252, 51%, 31%)
CMYKcmyk(40.5%, 50.6%, 0%, 69%)
CIE-LABlab(18.45, 14.76, -23.40)
CIE-LCHlch(18.45, 27.67, 302.24°)
OKLaboklab(30.29% 0.025 -0.066)
OKLCHoklch(30.29% 0.071 290.8)
XYZxyz(3.3087, 2.6198, 7.7270)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F274F #474F27
analogous
#27334F #2F274F #43274F
triadic
#2F274F #4F2F27 #274F2F
tetradic
#2F274F #4F2733 #474F27 #274F43
square
#2F274F #4F2733 #474F27 #274F43
split-complementary
#2F274F #4F4327 #334F27
monochromatic
#0C0A14 #171326 #2F274F #473B78 #604FA1

Accessibility & contrast

On white

13.78
#2F274F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2F274F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F274F
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F274F#FFFFFF#000000##FFFFFF
##2F274F1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192E50
Deuteranopia (green-blind)
#1A2C4E
Tritanopia (blue-blind)
#272F37
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f274f;
/* rgb */ color: rgb(47, 39, 79);
/* oklch */ color: oklch(30.3% 0.071 290.8);
Tailwind
colors: {
  custom: {
    50: '#696180',
    500: '#2f274f',
    950: '#000000',
  },
}
SCSS
$custom: #2f274f;
$custom-light: #696180;
$custom-dark: #000000;
JSON
{
  "hex": "#2f274f",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 79
  },
  "hsl": {
    "h": 252,
    "s": 33.898,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30292,
    "c": 0.0706,
    "h": 290.8
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#2F274F
secondary
#788250
accent
#CA5EB4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #2F274F

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

Preview Lab → · Contrast checker → · Palette generator →

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