#2F255C#2F255C

#2F255C is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.8% C 0.095 H 287.9°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2F255C
RGBrgb(47, 37, 92)
HSLhsl(251, 43%, 25%)
HSVhsv(251, 60%, 36%)
CMYKcmyk(48.9%, 59.8%, 0%, 63.9%)
CIE-LABlab(18.80, 20.44, -31.56)
CIE-LCHlch(18.80, 37.60, 302.94°)
OKLaboklab(30.84% 0.0291 -0.0899)
OKLCHoklch(30.84% 0.095 287.9)
XYZxyz(3.7651, 2.7000, 10.4459)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F255C #525C25
analogous
#25365C #2F255C #4A255C
triadic
#2F255C #5C2F25 #255C2F
tetradic
#2F255C #5C2536 #525C25 #255C4A
square
#2F255C #5C2536 #525C25 #255C4A
split-complementary
#2F255C #5C4A25 #365C25
monochromatic
#0B0916 #191330 #2F255C #453788 #5C48B3

Accessibility & contrast

On white

13.64
#2F255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F255C
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F255C#FFFFFF#000000##FFFFFF
##2F255C1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062F5E
Deuteranopia (green-blind)
#062C5B
Tritanopia (blue-blind)
#21313C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f255c;
/* rgb */ color: rgb(47, 37, 92);
/* oklch */ color: oklch(30.8% 0.095 287.9);
Tailwind
colors: {
  custom: {
    50: '#6b608a',
    500: '#2f255c',
    950: '#000000',
  },
}
SCSS
$custom: #2f255c;
$custom-light: #6b608a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f255c",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 250.909,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30843,
    "c": 0.09452,
    "h": 287.9
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#2F255C
secondary
#838F4D
accent
#D255BC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F255C

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

Preview Lab → · Contrast checker → · Palette generator →

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