#2F2365#2F2365

#2F2365 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.2% C 0.111 H 286.4°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#2F2365
RGBrgb(47, 35, 101)
HSLhsl(251, 49%, 27%)
HSVhsv(251, 65%, 40%)
CMYKcmyk(53.5%, 65.3%, 0%, 60.4%)
CIE-LABlab(19.00, 24.82, -37.18)
CIE-LCHlch(19.00, 44.70, 303.72°)
OKLaboklab(31.21% 0.0314 -0.1065)
OKLCHoklch(31.21% 0.111 286.4)
XYZxyz(4.1216, 2.7458, 12.6222)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2365 #596523
analogous
#233865 #2F2365 #502365
triadic
#2F2365 #652F23 #23652F
tetradic
#2F2365 #652338 #596523 #236550
square
#2F2365 #652338 #596523 #236550
split-complementary
#2F2365 #655023 #386523
monochromatic
#0B0817 #1A1338 #2F2365 #443392 #5A44BE

Accessibility & contrast

On white

13.56
#2F2365 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2365
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2365#FFFFFF#000000##FFFFFF
##2F23651.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003067
Deuteranopia (green-blind)
#002C64
Tritanopia (blue-blind)
#1B3340
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f2365;
/* rgb */ color: rgb(47, 35, 101);
/* oklch */ color: oklch(31.2% 0.111 286.4);
Tailwind
colors: {
  custom: {
    50: '#6d5e91',
    500: '#2f2365',
    950: '#000000',
  },
}
SCSS
$custom: #2f2365;
$custom-light: #6d5e91;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2365",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 101
  },
  "hsl": {
    "h": 250.909,
    "s": 48.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31213,
    "c": 0.11101,
    "h": 286.4
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#2F2365
secondary
#8B994B
accent
#D850BF
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2F2365

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

Preview Lab → · Contrast checker → · Palette generator →

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