#2F104A#2F104A

#2F104A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.102 H 304.5°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#2F104A
RGBrgb(47, 16, 74)
HSLhsl(272, 64%, 18%)
HSVhsv(272, 78%, 29%)
CMYKcmyk(36.5%, 78.4%, 0%, 71%)
CIE-LABlab(12.41, 28.06, -29.67)
CIE-LCHlch(12.41, 40.84, 313.40°)
OKLaboklab(25.74% 0.058 -0.0844)
OKLCHoklch(25.74% 0.102 304.5)
XYZxyz(2.5933, 1.4693, 6.6242)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F104A #2B4A10
analogous
#12104A #2F104A #4A1048
triadic
#2F104A #4A2F10 #104A2F
tetradic
#2F104A #4A1210 #2B4A10 #10484A
square
#2F104A #4A1210 #2B4A10 #10484A
split-complementary
#2F104A #484A10 #104A12
monochromatic
#100519 #100519 #2F104A #4F1B7C #6F26AF

Accessibility & contrast

On white

16.23
#2F104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F104A
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F104A#FFFFFF#000000##FFFFFF
##2F104A1.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#2A1E2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f104a;
/* rgb */ color: rgb(47, 16, 74);
/* oklch */ color: oklch(25.7% 0.102 304.5);
Tailwind
colors: {
  custom: {
    50: '#6b517d',
    500: '#2f104a',
    950: '#000000',
  },
}
SCSS
$custom: #2f104a;
$custom-light: #6b517d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f104a",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 272.069,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25738,
    "c": 0.1024,
    "h": 304.5
  },
  "luminance": 0.01469
}

Semantic roles & 50–950 ramp

primary
#2F104A
secondary
#588432
accent
#E7408E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F104A

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

Preview Lab → · Contrast checker → · Palette generator →

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