#2F1653#2F1653

#2F1653 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.105 H 297.8°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#2F1653
RGBrgb(47, 22, 83)
HSLhsl(265, 58%, 21%)
HSVhsv(265, 73%, 33%)
CMYKcmyk(43.4%, 73.5%, 0%, 67.5%)
CIE-LABlab(14.42, 27.27, -32.60)
CIE-LCHlch(14.42, 42.50, 309.91°)
OKLaboklab(27.42% 0.0491 -0.093)
OKLCHoklch(27.42% 0.105 297.8)
XYZxyz(3.0201, 1.8026, 8.3708)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1653 #3A5316
analogous
#161B53 #2F1653 #4D1653
triadic
#2F1653 #532F16 #16532F
tetradic
#2F1653 #53161B #3A5316 #16534D
square
#2F1653 #53161B #3A5316 #16534D
split-complementary
#2F1653 #534D16 #1B5316
monochromatic
#0E0618 #140923 #2F1653 #4A2383 #6630B4

Accessibility & contrast

On white

15.43
#2F1653 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F1653 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1653
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1653#FFFFFF#000000##FFFFFF
##2F16531.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#002452
Tritanopia (blue-blind)
#262432
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1653;
/* rgb */ color: rgb(47, 22, 83);
/* oklch */ color: oklch(27.4% 0.105 297.8);
Tailwind
colors: {
  custom: {
    50: '#6b5584',
    500: '#2f1653',
    950: '#000000',
  },
}
SCSS
$custom: #2f1653;
$custom-light: #6b5584;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1653",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 83
  },
  "hsl": {
    "h": 264.59,
    "s": 58.095,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27415,
    "c": 0.10519,
    "h": 297.8
  },
  "luminance": 0.01803
}

Semantic roles & 50–950 ramp

primary
#2F1653
secondary
#6A8A3A
accent
#E146A2
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1653

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

Preview Lab → · Contrast checker → · Palette generator →

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