#2F123F#2F123F

#2F123F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.085 H 311.5°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#2F123F
RGBrgb(47, 18, 63)
HSLhsl(279, 56%, 16%)
HSVhsv(279, 71%, 25%)
CMYKcmyk(25.4%, 71.4%, 0%, 75.3%)
CIE-LABlab(11.93, 23.93, -22.74)
CIE-LCHlch(11.93, 33.01, 316.46°)
OKLaboklab(25.11% 0.0566 -0.064)
OKLCHoklch(25.11% 0.085 311.5)
XYZxyz(2.2856, 1.3959, 4.8507)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F123F #223F12
analogous
#18123F #2F123F #3F1238
triadic
#2F123F #3F2F12 #123F2F
tetradic
#2F123F #3F1812 #223F12 #12383F
square
#2F123F #3F1812 #223F12 #12383F
split-complementary
#2F123F #383F12 #123F18
monochromatic
#120718 #120718 #2F123F #53206F #762D9E

Accessibility & contrast

On white

16.42
#2F123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2F123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F123F
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F123F#FFFFFF#000000##FFFFFF
##2F123F1.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021E40
Deuteranopia (green-blind)
#0E203E
Tritanopia (blue-blind)
#2D1B26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f123f;
/* rgb */ color: rgb(47, 18, 63);
/* oklch */ color: oklch(25.1% 0.085 311.5);
Tailwind
colors: {
  custom: {
    50: '#695274',
    500: '#2f123f',
    950: '#000000',
  },
}
SCSS
$custom: #2f123f;
$custom-light: #695274;
$custom-dark: #000000;
JSON
{
  "hex": "#2f123f",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 278.667,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25111,
    "c": 0.08547,
    "h": 311.5
  },
  "luminance": 0.01396
}

Semantic roles & 50–950 ramp

primary
#2F123F
secondary
#4D7835
accent
#DF497E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F123F

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

Preview Lab → · Contrast checker → · Palette generator →

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