#2F255D#2F255D

#2F255D is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.9% C 0.096 H 287.6°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#2F255D
RGBrgb(47, 37, 93)
HSLhsl(251, 43%, 25%)
HSVhsv(251, 60%, 36%)
CMYKcmyk(49.5%, 60.2%, 0%, 63.5%)
CIE-LABlab(18.88, 20.78, -32.10)
CIE-LCHlch(18.88, 38.24, 302.92°)
OKLaboklab(30.92% 0.0291 -0.0915)
OKLCHoklch(30.92% 0.096 287.6)
XYZxyz(3.8091, 2.7176, 10.6777)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F255D #535D25
analogous
#25375D #2F255D #4B255D
triadic
#2F255D #5D2F25 #255D2F
tetradic
#2F255D #5D2537 #535D25 #255D4B
square
#2F255D #5D2537 #535D25 #255D4B
split-complementary
#2F255D #5D4B25 #375D25
monochromatic
#0B0916 #191431 #2F255D #453689 #5B48B5

Accessibility & contrast

On white

13.60
#2F255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F255D
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F255D#FFFFFF#000000##FFFFFF
##2F255D1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052F5F
Deuteranopia (green-blind)
#052C5C
Tritanopia (blue-blind)
#20313D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f255d;
/* rgb */ color: rgb(47, 37, 93);
/* oklch */ color: oklch(30.9% 0.096 287.6);
Tailwind
colors: {
  custom: {
    50: '#6b608b',
    500: '#2f255d',
    950: '#000000',
  },
}
SCSS
$custom: #2f255d;
$custom-light: #6b608b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f255d",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 250.714,
    "s": 43.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30923,
    "c": 0.09604,
    "h": 287.6
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#2F255D
secondary
#84904D
accent
#D355BC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F255D

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

Preview Lab → · Contrast checker → · Palette generator →

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