#2F126A#2F126A

#2F126A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.139 H 289.8°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#2F126A
RGBrgb(47, 18, 106)
HSLhsl(260, 71%, 24%)
HSVhsv(260, 83%, 42%)
CMYKcmyk(55.7%, 83%, 0%, 58.4%)
CIE-LABlab(15.89, 36.31, -45.54)
CIE-LCHlch(15.89, 58.25, 308.57°)
OKLaboklab(29.14% 0.0471 -0.1309)
OKLCHoklch(29.14% 0.139 289.8)
XYZxyz(3.9894, 2.0774, 13.8236)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F126A #4D6A12
analogous
#12216A #2F126A #5B126A
triadic
#2F126A #6A2F12 #126A2F
tetradic
#2F126A #6A1221 #4D6A12 #126A5B
square
#2F126A #6A1221 #4D6A12 #126A5B
split-complementary
#2F126A #6A5B12 #216A12
monochromatic
#0C041A #180936 #2F126A #461B9E #5D24D3

Accessibility & contrast

On white

14.83
#2F126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F126A
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F126A#FFFFFF#000000##FFFFFF
##2F126A1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#192C3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f126a;
/* rgb */ color: rgb(47, 18, 106);
/* oklch */ color: oklch(29.1% 0.139 289.8);
Tailwind
colors: {
  custom: {
    50: '#6f5496',
    500: '#2f126a',
    950: '#000000',
  },
}
SCSS
$custom: #2f126a;
$custom-light: #6f5496;
$custom-dark: #000000;
JSON
{
  "hex": "#2f126a",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 259.773,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.2914,
    "c": 0.13915,
    "h": 289.8
  },
  "luminance": 0.02078
}

Semantic roles & 50–950 ramp

primary
#2F126A
secondary
#7EA236
accent
#EE3AB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F126A

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

Preview Lab → · Contrast checker → · Palette generator →

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