#2F104C#2F104C

#2F104C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.105 H 303.3°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#2F104C
RGBrgb(47, 16, 76)
HSLhsl(271, 65%, 18%)
HSVhsv(271, 79%, 30%)
CMYKcmyk(38.2%, 78.9%, 0%, 70.2%)
CIE-LABlab(12.59, 28.62, -30.77)
CIE-LCHlch(12.59, 42.02, 312.92°)
OKLaboklab(25.92% 0.0576 -0.0876)
OKLCHoklch(25.92% 0.105 303.3)
XYZxyz(2.6618, 1.4967, 6.9847)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F104C #2D4C10
analogous
#11104C #2F104C #4C104B
triadic
#2F104C #4C2F10 #104C2F
tetradic
#2F104C #4C1110 #2D4C10 #104B4C
square
#2F104C #4C1110 #2D4C10 #104B4C
split-complementary
#2F104C #4B4C10 #104C11
monochromatic
#100519 #100519 #2F104C #4E1B7F #6E25B1

Accessibility & contrast

On white

16.16
#2F104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F104C
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F104C#FFFFFF#000000##FFFFFF
##2F104C1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#291E2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f104c;
/* rgb */ color: rgb(47, 16, 76);
/* oklch */ color: oklch(25.9% 0.105 303.3);
Tailwind
colors: {
  custom: {
    50: '#6b517f',
    500: '#2f104c',
    950: '#000000',
  },
}
SCSS
$custom: #2f104c;
$custom-light: #6b517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f104c",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 271,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25918,
    "c": 0.10486,
    "h": 303.3
  },
  "luminance": 0.01497
}

Semantic roles & 50–950 ramp

primary
#2F104C
secondary
#5B8632
accent
#E84091
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F104C

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

Preview Lab → · Contrast checker → · Palette generator →

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