#2F125F#2F125F

#2F125F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.126 H 293.7°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#2F125F
RGBrgb(47, 18, 95)
HSLhsl(263, 68%, 22%)
HSVhsv(263, 81%, 37%)
CMYKcmyk(50.5%, 81.1%, 0%, 62.7%)
CIE-LABlab(14.75, 33.06, -40.13)
CIE-LCHlch(14.75, 51.99, 309.48°)
OKLaboklab(28% 0.0506 -0.1151)
OKLCHoklch(28% 0.126 293.7)
XYZxyz(3.4536, 1.8631, 11.0019)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F125F #425F12
analogous
#121C5F #2F125F #56125F
triadic
#2F125F #5F2F12 #125F2F
tetradic
#2F125F #5F121C #425F12 #125F56
square
#2F125F #5F121C #425F12 #125F56
split-complementary
#2F125F #5F5612 #1C5F12
monochromatic
#0D051A #16082C #2F125F #481C92 #6225C6

Accessibility & contrast

On white

15.30
#2F125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F125F
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F125F#FFFFFF#000000##FFFFFF
##2F125F1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#202738
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f125f;
/* rgb */ color: rgb(47, 18, 95);
/* oklch */ color: oklch(28.0% 0.126 293.7);
Tailwind
colors: {
  custom: {
    50: '#6d538d',
    500: '#2f125f',
    950: '#000000',
  },
}
SCSS
$custom: #2f125f;
$custom-light: #6d538d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f125f",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 262.597,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28001,
    "c": 0.12574,
    "h": 293.7
  },
  "luminance": 0.01863
}

Semantic roles & 50–950 ramp

primary
#2F125F
secondary
#729736
accent
#EB3DA9
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2F125F

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

Preview Lab → · Contrast checker → · Palette generator →

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