#2F233F#2F233F

#2F233F is a dark, muted violet. Relative luminance 0.022; OKLCH L 28.4% C 0.052 H 303.0°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#2F233F
RGBrgb(47, 35, 63)
HSLhsl(266, 29%, 19%)
HSVhsv(266, 44%, 25%)
CMYKcmyk(25.4%, 44.4%, 0%, 75.3%)
CIE-LABlab(16.33, 12.64, -15.77)
CIE-LCHlch(16.33, 20.21, 308.70°)
OKLaboklab(28.38% 0.0284 -0.0438)
OKLCHoklch(28.38% 0.052 303)
XYZxyz(2.6703, 2.1653, 4.9789)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F233F #333F23
analogous
#23253F #2F233F #3D233F
triadic
#2F233F #3F2F23 #233F2F
tetradic
#2F233F #3F2325 #333F23 #233F3D
square
#2F233F #3F2325 #333F23 #233F3D
split-complementary
#2F233F #3F3D23 #253F23
monochromatic
#0F0B14 #120D18 #2F233F #4C3966 #6A4F8E

Accessibility & contrast

On white

14.65
#2F233F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F233F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F233F
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F233F#FFFFFF#000000##FFFFFF
##2F233F1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2840
Deuteranopia (green-blind)
#1F283E
Tritanopia (blue-blind)
#2C282E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f233f;
/* rgb */ color: rgb(47, 35, 63);
/* oklch */ color: oklch(28.4% 0.052 303.0);
Tailwind
colors: {
  custom: {
    50: '#685e74',
    500: '#2f233f',
    950: '#000000',
  },
}
SCSS
$custom: #2f233f;
$custom-light: #685e74;
$custom-dark: #000000;
JSON
{
  "hex": "#2f233f",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 63
  },
  "hsl": {
    "h": 265.714,
    "s": 28.571,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28377,
    "c": 0.05223,
    "h": 303
  },
  "luminance": 0.02165
}

Semantic roles & 50–950 ramp

primary
#2F233F
secondary
#62724C
accent
#C5639B
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2F233F

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

Preview Lab → · Contrast checker → · Palette generator →

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