#2F123E#2F123E

#2F123E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.084 H 312.3°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#2F123E
RGBrgb(47, 18, 62)
HSLhsl(280, 55%, 16%)
HSVhsv(280, 71%, 24%)
CMYKcmyk(24.2%, 71%, 0%, 75.7%)
CIE-LABlab(11.86, 23.66, -22.15)
CIE-LCHlch(11.86, 32.42, 316.89°)
OKLaboklab(25.03% 0.0566 -0.0623)
OKLCHoklch(25.03% 0.084 312.3)
XYZxyz(2.2579, 1.3848, 4.7048)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F123E #213E12
analogous
#19123E #2F123E #3E1237
triadic
#2F123E #3E2F12 #123E2F
tetradic
#2F123E #3E1912 #213E12 #12373E
square
#2F123E #3E1912 #213E12 #12373E
split-complementary
#2F123E #373E12 #123E19
monochromatic
#120718 #120718 #2F123E #53206D #772E9D

Accessibility & contrast

On white

16.44
#2F123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F123E
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F123E#FFFFFF#000000##FFFFFF
##2F123E1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031E3F
Deuteranopia (green-blind)
#0F203D
Tritanopia (blue-blind)
#2D1A26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f123e;
/* rgb */ color: rgb(47, 18, 62);
/* oklch */ color: oklch(25.0% 0.084 312.3);
Tailwind
colors: {
  custom: {
    50: '#695273',
    500: '#2f123e',
    950: '#000000',
  },
}
SCSS
$custom: #2f123e;
$custom-light: #695273;
$custom-dark: #000000;
JSON
{
  "hex": "#2f123e",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 279.545,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25033,
    "c": 0.0842,
    "h": 312.3
  },
  "luminance": 0.01385
}

Semantic roles & 50–950 ramp

primary
#2F123E
secondary
#4B7735
accent
#DE497C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F123E

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

Preview Lab → · Contrast checker → · Palette generator →

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