#2F124D#2F124D

#2F124D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.103 H 302.2°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#2F124D
RGBrgb(47, 18, 77)
HSLhsl(269, 62%, 19%)
HSVhsv(269, 77%, 30%)
CMYKcmyk(39%, 76.6%, 0%, 69.8%)
CIE-LABlab(13.06, 27.81, -30.69)
CIE-LCHlch(13.06, 41.42, 312.18°)
OKLaboklab(26.28% 0.0551 -0.0874)
OKLCHoklch(26.28% 0.103 302.2)
XYZxyz(2.7278, 1.5728, 7.1796)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F124D #304D12
analogous
#12124D #2F124D #4C124D
triadic
#2F124D #4D2F12 #124D2F
tetradic
#2F124D #4D1212 #304D12 #124D4C
square
#2F124D #4D1212 #304D12 #124D4C
split-complementary
#2F124D #4D4C12 #124D12
monochromatic
#0F0619 #11061B #2F124D #4D1E7F #6C29B0

Accessibility & contrast

On white

15.97
#2F124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F124D
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F124D#FFFFFF#000000##FFFFFF
##2F124D1.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#29202E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f124d;
/* rgb */ color: rgb(47, 18, 77);
/* oklch */ color: oklch(26.3% 0.103 302.2);
Tailwind
colors: {
  custom: {
    50: '#6b527f',
    500: '#2f124d',
    950: '#000000',
  },
}
SCSS
$custom: #2f124d;
$custom-light: #6b527f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f124d",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 269.492,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26284,
    "c": 0.10328,
    "h": 302.2
  },
  "luminance": 0.01573
}

Semantic roles & 50–950 ramp

primary
#2F124D
secondary
#5E8635
accent
#E54395
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F124D

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

Preview Lab → · Contrast checker → · Palette generator →

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