#2F126F#2F126F

#2F126F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.145 H 288.2°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#2F126F
RGBrgb(47, 18, 111)
HSLhsl(259, 72%, 25%)
HSVhsv(259, 84%, 44%)
CMYKcmyk(57.7%, 83.8%, 0%, 56.5%)
CIE-LABlab(16.43, 37.80, -47.92)
CIE-LCHlch(16.43, 61.03, 308.26°)
OKLaboklab(29.68% 0.0453 -0.1379)
OKLCHoklch(29.68% 0.145 288.2)
XYZxyz(4.2570, 2.1844, 15.2332)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F126F #526F12
analogous
#12236F #2F126F #5E126F
triadic
#2F126F #6F2F12 #126F2F
tetradic
#2F126F #6F1223 #526F12 #126F5E
square
#2F126F #6F1223 #526F12 #126F5E
split-complementary
#2F126F #6F5E12 #236F12
monochromatic
#0B041A #19093A #2F126F #451BA4 #5C23D8

Accessibility & contrast

On white

14.61
#2F126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2F126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F126F
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F126F#FFFFFF#000000##FFFFFF
##2F126F1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#142E41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f126f;
/* rgb */ color: rgb(47, 18, 111);
/* oklch */ color: oklch(29.7% 0.145 288.2);
Tailwind
colors: {
  custom: {
    50: '#705499',
    500: '#2f126f',
    950: '#000000',
  },
}
SCSS
$custom: #2f126f;
$custom-light: #705499;
$custom-dark: #000000;
JSON
{
  "hex": "#2f126f",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 258.71,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29676,
    "c": 0.14515,
    "h": 288.2
  },
  "luminance": 0.02185
}

Semantic roles & 50–950 ramp

primary
#2F126F
secondary
#83A637
accent
#EF39B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F126F

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

Preview Lab → · Contrast checker → · Palette generator →

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