#2F2280#2F2280

#2F2280 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.150 H 281.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2F2280
RGBrgb(47, 34, 128)
HSLhsl(248, 58%, 32%)
HSVhsv(248, 73%, 50%)
CMYKcmyk(63.3%, 73.4%, 0%, 49.8%)
CIE-LABlab(21.23, 34.53, -50.92)
CIE-LCHlch(21.23, 61.52, 304.15°)
OKLaboklab(33.59% 0.0285 -0.1468)
OKLCHoklch(33.59% 0.15 281)
XYZxyz(5.6394, 3.3065, 20.7589)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2280 #738022
analogous
#224480 #2F2280 #5E2280
triadic
#2F2280 #802F22 #22802F
tetradic
#2F2280 #802244 #738022 #22805E
square
#2F2280 #802244 #738022 #22805E
split-complementary
#2F2280 #805E22 #448022
monochromatic
#0B081F #1D1550 #2F2280 #412FB0 #5F4DD0

Accessibility & contrast

On white

12.64
#2F2280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F2280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2280
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2280#FFFFFF#000000##FFFFFF
##2F22801.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2280;
/* rgb */ color: rgb(47, 34, 128);
/* oklch */ color: oklch(33.6% 0.150 281.0);
Tailwind
colors: {
  custom: {
    50: '#725fa6',
    500: '#2f2280',
    950: '#000000',
  },
}
SCSS
$custom: #2f2280;
$custom-light: #725fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2280",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 248.298,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3359,
    "c": 0.14953,
    "h": 281
  },
  "luminance": 0.03307
}

Semantic roles & 50–950 ramp

primary
#2F2280
secondary
#A4B24B
accent
#E147CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F2280

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

Preview Lab → · Contrast checker → · Palette generator →

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