#2F255E#2F255E

#2F255E is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.0% C 0.098 H 287.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#2F255E
RGBrgb(47, 37, 94)
HSLhsl(251, 44%, 26%)
HSVhsv(251, 61%, 37%)
CMYKcmyk(50%, 60.6%, 0%, 63.1%)
CIE-LABlab(18.95, 21.12, -32.64)
CIE-LCHlch(18.95, 38.87, 302.90°)
OKLaboklab(31% 0.0291 -0.0931)
OKLCHoklch(31% 0.098 287.3)
XYZxyz(3.8537, 2.7355, 10.9125)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F255E #545E25
analogous
#25375E #2F255E #4B255E
triadic
#2F255E #5E2F25 #255E2F
tetradic
#2F255E #5E2537 #545E25 #255E4B
square
#2F255E #5E2537 #545E25 #255E4B
split-complementary
#2F255E #5E4B25 #375E25
monochromatic
#0B0916 #191432 #2F255E #45368A #5B48B6

Accessibility & contrast

On white

13.57
#2F255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F255E
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F255E#FFFFFF#000000##FFFFFF
##2F255E1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032F60
Deuteranopia (green-blind)
#032C5D
Tritanopia (blue-blind)
#20323D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f255e;
/* rgb */ color: rgb(47, 37, 94);
/* oklch */ color: oklch(31.0% 0.098 287.3);
Tailwind
colors: {
  custom: {
    50: '#6c608c',
    500: '#2f255e',
    950: '#000000',
  },
}
SCSS
$custom: #2f255e;
$custom-light: #6c608c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f255e",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 250.526,
    "s": 43.511,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31003,
    "c": 0.09756,
    "h": 287.3
  },
  "luminance": 0.02736
}

Semantic roles & 50–950 ramp

primary
#2F255E
secondary
#85914D
accent
#D355BD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F255E

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

Preview Lab → · Contrast checker → · Palette generator →

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