#2F104B#2F104B

#2F104B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.104 H 303.9°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#2F104B
RGBrgb(47, 16, 75)
HSLhsl(272, 65%, 18%)
HSVhsv(272, 79%, 29%)
CMYKcmyk(37.3%, 78.7%, 0%, 70.6%)
CIE-LABlab(12.50, 28.34, -30.23)
CIE-LCHlch(12.50, 41.43, 313.16°)
OKLaboklab(25.83% 0.0578 -0.086)
OKLCHoklch(25.83% 0.104 303.9)
XYZxyz(2.6273, 1.4829, 6.8031)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F104B #2C4B10
analogous
#11104B #2F104B #4B1049
triadic
#2F104B #4B2F10 #104B2F
tetradic
#2F104B #4B1110 #2C4B10 #10494B
square
#2F104B #4B1110 #2C4B10 #10494B
split-complementary
#2F104B #494B10 #104B11
monochromatic
#100519 #100519 #2F104B #4F1B7D #6E26B0

Accessibility & contrast

On white

16.20
#2F104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F104B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F104B
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F104B#FFFFFF#000000##FFFFFF
##2F104B1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#2A1E2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f104b;
/* rgb */ color: rgb(47, 16, 75);
/* oklch */ color: oklch(25.8% 0.104 303.9);
Tailwind
colors: {
  custom: {
    50: '#6b517e',
    500: '#2f104b',
    950: '#000000',
  },
}
SCSS
$custom: #2f104b;
$custom-light: #6b517e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f104b",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 271.525,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25828,
    "c": 0.10363,
    "h": 303.9
  },
  "luminance": 0.01483
}

Semantic roles & 50–950 ramp

primary
#2F104B
secondary
#598532
accent
#E84090
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F104B

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

Preview Lab → · Contrast checker → · Palette generator →

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