#2F124A#2F124A

#2F124A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.099 H 304.0°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#2F124A
RGBrgb(47, 18, 74)
HSLhsl(271, 61%, 18%)
HSVhsv(271, 76%, 29%)
CMYKcmyk(36.5%, 75.7%, 0%, 71%)
CIE-LABlab(12.81, 26.96, -29.04)
CIE-LCHlch(12.81, 39.62, 312.87°)
OKLaboklab(26.02% 0.0556 -0.0825)
OKLCHoklch(26.02% 0.099 304)
XYZxyz(2.6243, 1.5314, 6.6346)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F124A #2D4A12
analogous
#13124A #2F124A #4A1249
triadic
#2F124A #4A2F12 #124A2F
tetradic
#2F124A #4A1312 #2D4A12 #12494A
square
#2F124A #4A1312 #2D4A12 #12494A
split-complementary
#2F124A #494A12 #124A13
monochromatic
#100619 #100619 #2F124A #4E1E7B #6E2AAC

Accessibility & contrast

On white

16.08
#2F124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F124A
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F124A#FFFFFF#000000##FFFFFF
##2F124A1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#2A1F2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f124a;
/* rgb */ color: rgb(47, 18, 74);
/* oklch */ color: oklch(26.0% 0.099 304.0);
Tailwind
colors: {
  custom: {
    50: '#6a527d',
    500: '#2f124a',
    950: '#000000',
  },
}
SCSS
$custom: #2f124a;
$custom-light: #6a527d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f124a",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 271.071,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2602,
    "c": 0.09947,
    "h": 304
  },
  "luminance": 0.01531
}

Semantic roles & 50–950 ramp

primary
#2F124A
secondary
#5B8335
accent
#E44491
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F124A

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

Preview Lab → · Contrast checker → · Palette generator →

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