#2F2268#2F2268

#2F2268 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.3% C 0.117 H 286.0°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#2F2268
RGBrgb(47, 34, 104)
HSLhsl(251, 51%, 27%)
HSVhsv(251, 67%, 41%)
CMYKcmyk(54.8%, 67.3%, 0%, 59.2%)
CIE-LABlab(19.00, 26.48, -39.13)
CIE-LCHlch(19.00, 47.25, 304.09°)
OKLaboklab(31.3% 0.0322 -0.1122)
OKLCHoklch(31.3% 0.117 286)
XYZxyz(4.2423, 2.7477, 13.4008)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2268 #5B6822
analogous
#223868 #2F2268 #522268
triadic
#2F2268 #682F22 #22682F
tetradic
#2F2268 #682238 #5B6822 #226852
square
#2F2268 #682238 #5B6822 #226852
split-complementary
#2F2268 #685222 #386822
monochromatic
#0A0817 #1A133A #2F2268 #443196 #5A43C2

Accessibility & contrast

On white

13.55
#2F2268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F2268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2268
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2268#FFFFFF#000000##FFFFFF
##2F22681.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#002C67
Tritanopia (blue-blind)
#193341
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f2268;
/* rgb */ color: rgb(47, 34, 104);
/* oklch */ color: oklch(31.3% 0.117 286.0);
Tailwind
colors: {
  custom: {
    50: '#6e5e94',
    500: '#2f2268',
    950: '#000000',
  },
}
SCSS
$custom: #2f2268;
$custom-light: #6e5e94;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2268",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 104
  },
  "hsl": {
    "h": 251.143,
    "s": 50.725,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31299,
    "c": 0.11677,
    "h": 286
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#2F2268
secondary
#8D9C4A
accent
#DA4EC0
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2F2268

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

Preview Lab → · Contrast checker → · Palette generator →

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