#2F2296#2F2296

#2F2296 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.178 H 277.6°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#2F2296
RGBrgb(47, 34, 150)
HSLhsl(247, 63%, 36%)
HSVhsv(247, 77%, 59%)
CMYKcmyk(68.7%, 77.3%, 0%, 41.2%)
CIE-LABlab(23.50, 41.75, -60.91)
CIE-LCHlch(23.50, 73.84, 304.43°)
OKLaboklab(35.88% 0.0235 -0.176)
OKLCHoklch(35.88% 0.178 277.6)
XYZxyz(7.2476, 3.9498, 29.2287)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2296 #899622
analogous
#224F96 #2F2296 #692296
triadic
#2F2296 #962F22 #22962F
tetradic
#2F2296 #96224F #899622 #229669
square
#2F2296 #96224F #899622 #229669
split-complementary
#2F2296 #966922 #4F9622
monochromatic
#100B32 #1F1764 #2F2296 #3F2DC8 #6759D9

Accessibility & contrast

On white

11.73
#2F2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2296
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2296#FFFFFF#000000##FFFFFF
##2F22961.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2296;
/* rgb */ color: rgb(47, 34, 150);
/* oklch */ color: oklch(35.9% 0.178 277.6);
Tailwind
colors: {
  custom: {
    50: '#7760b6',
    500: '#2f2296',
    950: '#000000',
  },
}
SCSS
$custom: #2f2296;
$custom-light: #7760b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2296",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 246.724,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35883,
    "c": 0.17752,
    "h": 277.6
  },
  "luminance": 0.0395
}

Semantic roles & 50–950 ramp

primary
#2F2296
secondary
#B2BE56
accent
#E642D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2296

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

Preview Lab → · Contrast checker → · Palette generator →

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