#2F104E#2F104E

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

Color values

HEX#2F104E
RGBrgb(47, 16, 78)
HSLhsl(270, 66%, 18%)
HSVhsv(270, 79%, 31%)
CMYKcmyk(39.7%, 79.5%, 0%, 69.4%)
CIE-LABlab(12.77, 29.18, -31.86)
CIE-LCHlch(12.77, 43.20, 312.48°)
OKLaboklab(26.1% 0.0572 -0.0908)
OKLCHoklch(26.1% 0.107 302.2)
XYZxyz(2.7324, 1.5250, 7.3566)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F104E #2F4E10
analogous
#10104E #2F104E #4E104E
triadic
#2F104E #4E2F10 #104E2F
tetradic
#2F104E #4E1010 #2F4E10 #104E4E
square
#2F104E #4E1010 #2F4E10 #104E4E
split-complementary
#2F104E #4E4E10 #104E10
monochromatic
#0F0519 #10061B #2F104E #4E1A81 #6C25B4

Accessibility & contrast

On white

16.09
#2F104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F104E
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F104E#FFFFFF#000000##FFFFFF
##2F104E1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#281F2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f104e;
/* rgb */ color: rgb(47, 16, 78);
/* oklch */ color: oklch(26.1% 0.107 302.2);
Tailwind
colors: {
  custom: {
    50: '#6b5180',
    500: '#2f104e',
    950: '#000000',
  },
}
SCSS
$custom: #2f104e;
$custom-light: #6b5180;
$custom-dark: #000000;
JSON
{
  "hex": "#2f104e",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 270,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26101,
    "c": 0.10732,
    "h": 302.2
  },
  "luminance": 0.01525
}

Semantic roles & 50–950 ramp

primary
#2F104E
secondary
#5D8832
accent
#E93F94
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F104E

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

Preview Lab → · Contrast checker → · Palette generator →

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