#2F273E#2F273E

#2F273E is a dark, muted violet. Relative luminance 0.024; OKLCH L 29.2% C 0.042 H 299.8°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#2F273E
RGBrgb(47, 39, 62)
HSLhsl(261, 23%, 20%)
HSVhsv(261, 37%, 24%)
CMYKcmyk(24.2%, 37.1%, 0%, 75.7%)
CIE-LABlab(17.48, 9.53, -13.30)
CIE-LCHlch(17.48, 16.36, 305.61°)
OKLaboklab(29.23% 0.021 -0.0367)
OKLCHoklch(29.23% 0.042 299.8)
XYZxyz(2.7671, 2.4032, 4.8746)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F273E #363E27
analogous
#272B3E #2F273E #3B273E
triadic
#2F273E #3E2F27 #273E2F
tetradic
#2F273E #3E272B #363E27 #273E3B
square
#2F273E #3E272B #363E27 #273E3B
split-complementary
#2F273E #3E3B27 #2B3E27
monochromatic
#0E0C13 #130F18 #2F273E #4B3F64 #685689

Accessibility & contrast

On white

14.18
#2F273E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F273E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F273E
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F273E#FFFFFF#000000##FFFFFF
##2F273E1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222B3F
Deuteranopia (green-blind)
#232B3D
Tritanopia (blue-blind)
#2C2B2F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f273e;
/* rgb */ color: rgb(47, 39, 62);
/* oklch */ color: oklch(29.2% 0.042 299.8);
Tailwind
colors: {
  custom: {
    50: '#686173',
    500: '#2f273e',
    950: '#000000',
  },
}
SCSS
$custom: #2f273e;
$custom-light: #686173;
$custom-dark: #000000;
JSON
{
  "hex": "#2f273e",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 62
  },
  "hsl": {
    "h": 260.87,
    "s": 22.772,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2923,
    "c": 0.04234,
    "h": 299.8
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#2F273E
secondary
#657051
accent
#BF69A1
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060508
muted
#7A797B

Preview Lab

Preview with #2F273E

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

Preview Lab → · Contrast checker → · Palette generator →

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