#2F124B#2F124B

#2F124B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.101 H 303.4°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#2F124B
RGBrgb(47, 18, 75)
HSLhsl(271, 61%, 18%)
HSVhsv(271, 76%, 29%)
CMYKcmyk(37.3%, 76%, 0%, 70.6%)
CIE-LABlab(12.89, 27.24, -29.59)
CIE-LCHlch(12.89, 40.22, 312.63°)
OKLaboklab(26.11% 0.0554 -0.0841)
OKLCHoklch(26.11% 0.101 303.4)
XYZxyz(2.6583, 1.5450, 6.8134)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F124B #2E4B12
analogous
#12124B #2F124B #4B124A
triadic
#2F124B #4B2F12 #124B2F
tetradic
#2F124B #4B1212 #2E4B12 #124A4B
square
#2F124B #4B1212 #2E4B12 #124A4B
split-complementary
#2F124B #4A4B12 #124B12
monochromatic
#0F0619 #10061A #2F124B #4E1E7C #6D2AAE

Accessibility & contrast

On white

16.04
#2F124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F124B
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F124B#FFFFFF#000000##FFFFFF
##2F124B1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#291F2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f124b;
/* rgb */ color: rgb(47, 18, 75);
/* oklch */ color: oklch(26.1% 0.101 303.4);
Tailwind
colors: {
  custom: {
    50: '#6b527e',
    500: '#2f124b',
    950: '#000000',
  },
}
SCSS
$custom: #2f124b;
$custom-light: #6b527e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f124b",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 270.526,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26107,
    "c": 0.10074,
    "h": 303.4
  },
  "luminance": 0.01545
}

Semantic roles & 50–950 ramp

primary
#2F124B
secondary
#5C8435
accent
#E44392
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F124B

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

Preview Lab → · Contrast checker → · Palette generator →

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