#2F104D#2F104D

#2F104D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.106 H 302.8°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#2F104D
RGBrgb(47, 16, 77)
HSLhsl(270, 66%, 18%)
HSVhsv(270, 79%, 30%)
CMYKcmyk(39%, 79.2%, 0%, 69.8%)
CIE-LABlab(12.68, 28.90, -31.32)
CIE-LCHlch(12.68, 42.62, 312.70°)
OKLaboklab(26.01% 0.0574 -0.0892)
OKLCHoklch(26.01% 0.106 302.8)
XYZxyz(2.6968, 1.5107, 7.1693)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F104D #2E4D10
analogous
#11104D #2F104D #4D104C
triadic
#2F104D #4D2F10 #104D2F
tetradic
#2F104D #4D1110 #2E4D10 #104C4D
square
#2F104D #4D1110 #2E4D10 #104C4D
split-complementary
#2F104D #4C4D10 #104D11
monochromatic
#0F0519 #10051A #2F104D #4E1B80 #6D25B2

Accessibility & contrast

On white

16.13
#2F104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F104D
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F104D#FFFFFF#000000##FFFFFF
##2F104D1.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#291F2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f104d;
/* rgb */ color: rgb(47, 16, 77);
/* oklch */ color: oklch(26.0% 0.106 302.8);
Tailwind
colors: {
  custom: {
    50: '#6b517f',
    500: '#2f104d',
    950: '#000000',
  },
}
SCSS
$custom: #2f104d;
$custom-light: #6b517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f104d",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 270.492,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26009,
    "c": 0.10609,
    "h": 302.8
  },
  "luminance": 0.01511
}

Semantic roles & 50–950 ramp

primary
#2F104D
secondary
#5C8732
accent
#E93F93
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F104D

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

Preview Lab → · Contrast checker → · Palette generator →

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