#2F084B#2F084B

#2F084B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.114 H 305.6°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#2F084B
RGBrgb(47, 8, 75)
HSLhsl(275, 81%, 16%)
HSVhsv(275, 89%, 29%)
CMYKcmyk(37.3%, 89.3%, 0%, 70.6%)
CIE-LABlab(11.18, 32.12, -32.38)
CIE-LCHlch(11.18, 45.61, 314.77°)
OKLaboklab(24.9% 0.0662 -0.0922)
OKLCHoklch(24.9% 0.114 305.6)
XYZxyz(2.5288, 1.2860, 6.7702)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F084B #244B08
analogous
#0D084B #2F084B #4B0846
triadic
#2F084B #4B2F08 #084B2F
tetradic
#2F084B #4B0D08 #244B08 #08464B
square
#2F084B #4B0D08 #244B08 #08464B
split-complementary
#2F084B #464B08 #084B0D
monochromatic
#11031C #11031C #2F084B #520E82 #7414BA

Accessibility & contrast

On white

16.70
#2F084B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2F084B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F084B
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F084B#FFFFFF#000000##FFFFFF
##2F084B1.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#2A1A2A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f084b;
/* rgb */ color: rgb(47, 8, 75);
/* oklch */ color: oklch(24.9% 0.114 305.6);
Tailwind
colors: {
  custom: {
    50: '#6b4d7e',
    500: '#2f084b',
    950: '#000000',
  },
}
SCSS
$custom: #2f084b;
$custom-light: #6b4d7e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f084b",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 75
  },
  "hsl": {
    "h": 274.925,
    "s": 80.723,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24898,
    "c": 0.11352,
    "h": 305.6
  },
  "luminance": 0.01286
}

Semantic roles & 50–950 ramp

primary
#2F084B
secondary
#4F8926
accent
#F73184
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F084B

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

Preview Lab → · Contrast checker → · Palette generator →

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