#2F225A#2F225A

#2F225A is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.1% C 0.096 H 290.1°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2F225A
RGBrgb(47, 34, 90)
HSLhsl(254, 45%, 24%)
HSVhsv(254, 62%, 35%)
CMYKcmyk(47.8%, 62.2%, 0%, 64.7%)
CIE-LABlab(17.86, 21.81, -31.75)
CIE-LCHlch(17.86, 38.52, 304.49°)
OKLaboklab(30.1% 0.0331 -0.0905)
OKLCHoklch(30.1% 0.096 290.1)
XYZxyz(3.5893, 2.4865, 9.9617)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F225A #4D5A22
analogous
#22315A #2F225A #4B225A
triadic
#2F225A #5A2F22 #225A2F
tetradic
#2F225A #5A2231 #4D5A22 #225A4B
square
#2F225A #5A2231 #4D5A22 #225A4B
split-complementary
#2F225A #5A4B22 #315A22
monochromatic
#0C0816 #18112E #2F225A #463386 #5D44B3

Accessibility & contrast

On white

14.02
#2F225A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2F225A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F225A
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F225A#FFFFFF#000000##FFFFFF
##2F225A1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012D5C
Deuteranopia (green-blind)
#032A59
Tritanopia (blue-blind)
#222E3A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f225a;
/* rgb */ color: rgb(47, 34, 90);
/* oklch */ color: oklch(30.1% 0.096 290.1);
Tailwind
colors: {
  custom: {
    50: '#6b5d89',
    500: '#2f225a',
    950: '#000000',
  },
}
SCSS
$custom: #2f225a;
$custom-light: #6b5d89;
$custom-dark: #000000;
JSON
{
  "hex": "#2f225a",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 90
  },
  "hsl": {
    "h": 253.929,
    "s": 45.161,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30098,
    "c": 0.09636,
    "h": 290.1
  },
  "luminance": 0.02487
}

Semantic roles & 50–950 ramp

primary
#2F225A
secondary
#7E8E4A
accent
#D553B7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2F225A

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

Preview Lab → · Contrast checker → · Palette generator →

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