#2F124E#2F124E

#2F124E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.105 H 301.7°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#2F124E
RGBrgb(47, 18, 78)
HSLhsl(269, 63%, 19%)
HSVhsv(269, 77%, 31%)
CMYKcmyk(39.7%, 76.9%, 0%, 69.4%)
CIE-LABlab(13.15, 28.10, -31.24)
CIE-LCHlch(13.15, 42.01, 311.97°)
OKLaboklab(26.37% 0.0549 -0.089)
OKLCHoklch(26.37% 0.105 301.7)
XYZxyz(2.7634, 1.5870, 7.3670)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F124E #314E12
analogous
#12134E #2F124E #4D124E
triadic
#2F124E #4E2F12 #124E2F
tetradic
#2F124E #4E1213 #314E12 #124E4D
square
#2F124E #4E1213 #314E12 #124E4D
split-complementary
#2F124E #4E4D12 #134E12
monochromatic
#0F0619 #11071C #2F124E #4D1D80 #6B29B1

Accessibility & contrast

On white

15.94
#2F124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F124E
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F124E#FFFFFF#000000##FFFFFF
##2F124E1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#28202E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f124e;
/* rgb */ color: rgb(47, 18, 78);
/* oklch */ color: oklch(26.4% 0.105 301.7);
Tailwind
colors: {
  custom: {
    50: '#6b5280',
    500: '#2f124e',
    950: '#000000',
  },
}
SCSS
$custom: #2f124e;
$custom-light: #6b5280;
$custom-dark: #000000;
JSON
{
  "hex": "#2f124e",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 269,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26374,
    "c": 0.10453,
    "h": 301.7
  },
  "luminance": 0.01587
}

Semantic roles & 50–950 ramp

primary
#2F124E
secondary
#5F8735
accent
#E64297
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F124E

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

Preview Lab → · Contrast checker → · Palette generator →

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