#2F274D#2F274D

#2F274D is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.2% C 0.067 H 291.5°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#2F274D
RGBrgb(47, 39, 77)
HSLhsl(253, 33%, 23%)
HSVhsv(253, 49%, 30%)
CMYKcmyk(39%, 49.4%, 0%, 69.8%)
CIE-LABlab(18.33, 14.12, -22.25)
CIE-LCHlch(18.33, 26.35, 302.39°)
OKLaboklab(30.16% 0.0247 -0.0626)
OKLCHoklch(30.16% 0.067 291.5)
XYZxyz(3.2370, 2.5911, 7.3493)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F274D #454D27
analogous
#27324D #2F274D #42274D
triadic
#2F274D #4D2F27 #274D2F
tetradic
#2F274D #4D2732 #454D27 #274D42
square
#2F274D #4D2732 #454D27 #274D42
split-complementary
#2F274D #4D4227 #324D27
monochromatic
#0C0A14 #161224 #2F274D #483C76 #61509E

Accessibility & contrast

On white

13.83
#2F274D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F274D
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F274D#FFFFFF#000000##FFFFFF
##2F274D1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4E
Deuteranopia (green-blind)
#1B2C4C
Tritanopia (blue-blind)
#282E36
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f274d;
/* rgb */ color: rgb(47, 39, 77);
/* oklch */ color: oklch(30.2% 0.067 291.5);
Tailwind
colors: {
  custom: {
    50: '#69617f',
    500: '#2f274d',
    950: '#000000',
  },
}
SCSS
$custom: #2f274d;
$custom-light: #69617f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f274d",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 77
  },
  "hsl": {
    "h": 252.632,
    "s": 32.759,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30156,
    "c": 0.06733,
    "h": 291.5
  },
  "luminance": 0.02591
}

Semantic roles & 50–950 ramp

primary
#2F274D
secondary
#768050
accent
#C95FB3
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #2F274D

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

Preview Lab → · Contrast checker → · Palette generator →

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