#2F2292#2F2292

#2F2292 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.173 H 278.1°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2F2292
RGBrgb(47, 34, 146)
HSLhsl(247, 62%, 35%)
HSVhsv(247, 77%, 57%)
CMYKcmyk(67.8%, 76.7%, 0%, 42.7%)
CIE-LABlab(23.08, 40.45, -59.14)
CIE-LCHlch(23.08, 71.65, 304.37°)
OKLaboklab(35.46% 0.0244 -0.1708)
OKLCHoklch(35.46% 0.173 278.1)
XYZxyz(6.9310, 3.8231, 27.5612)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2292 #859222
analogous
#224D92 #2F2292 #672292
triadic
#2F2292 #922F22 #22922F
tetradic
#2F2292 #92224D #859222 #229267
square
#2F2292 #92224D #859222 #229267
split-complementary
#2F2292 #926722 #4D9222
monochromatic
#0F0B2F #1F1660 #2F2292 #3F2EC4 #6657D8

Accessibility & contrast

On white

11.90
#2F2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2292
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2292#FFFFFF#000000##FFFFFF
##2F22921.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2292;
/* rgb */ color: rgb(47, 34, 146);
/* oklch */ color: oklch(35.5% 0.173 278.1);
Tailwind
colors: {
  custom: {
    50: '#765fb3',
    500: '#2f2292',
    950: '#000000',
  },
}
SCSS
$custom: #2f2292;
$custom-light: #765fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2292",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 246.964,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35455,
    "c": 0.17255,
    "h": 278.1
  },
  "luminance": 0.03824
}

Semantic roles & 50–950 ramp

primary
#2F2292
secondary
#B0BC54
accent
#E543D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2292

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

Preview Lab → · Contrast checker → · Palette generator →

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