#2F2263#2F2263

#2F2263 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.9% C 0.110 H 287.3°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#2F2263
RGBrgb(47, 34, 99)
HSLhsl(252, 49%, 26%)
HSVhsv(252, 66%, 39%)
CMYKcmyk(52.5%, 65.7%, 0%, 61.2%)
CIE-LABlab(18.58, 24.81, -36.54)
CIE-LCHlch(18.58, 44.17, 304.17°)
OKLaboklab(30.86% 0.0327 -0.1046)
OKLCHoklch(30.86% 0.11 287.3)
XYZxyz(3.9958, 2.6491, 12.1027)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2263 #566322
analogous
#223563 #2F2263 #4F2263
triadic
#2F2263 #632F22 #22632F
tetradic
#2F2263 #632235 #566322 #22634F
square
#2F2263 #632235 #566322 #22634F
split-complementary
#2F2263 #634F22 #356322
monochromatic
#0B0817 #191235 #2F2263 #453291 #5A41BE

Accessibility & contrast

On white

13.73
#2F2263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2F2263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2263
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2263#FFFFFF#000000##FFFFFF
##2F22631.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F65
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#1D313F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f2263;
/* rgb */ color: rgb(47, 34, 99);
/* oklch */ color: oklch(30.9% 0.110 287.3);
Tailwind
colors: {
  custom: {
    50: '#6d5e90',
    500: '#2f2263',
    950: '#000000',
  },
}
SCSS
$custom: #2f2263;
$custom-light: #6d5e90;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2263",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 99
  },
  "hsl": {
    "h": 252,
    "s": 48.872,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30857,
    "c": 0.1096,
    "h": 287.3
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#2F2263
secondary
#87974A
accent
#D84FBD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F2263

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

Preview Lab → · Contrast checker → · Palette generator →

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