#2F2282#2F2282

#2F2282 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.152 H 280.6°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2F2282
RGBrgb(47, 34, 130)
HSLhsl(248, 59%, 32%)
HSVhsv(248, 74%, 51%)
CMYKcmyk(63.8%, 73.8%, 0%, 49%)
CIE-LABlab(21.43, 35.20, -51.85)
CIE-LCHlch(21.43, 62.67, 304.17°)
OKLaboklab(33.79% 0.028 -0.1495)
OKLCHoklch(33.79% 0.152 280.6)
XYZxyz(5.7723, 3.3597, 21.4591)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2282 #758222
analogous
#224582 #2F2282 #5F2282
triadic
#2F2282 #822F22 #22822F
tetradic
#2F2282 #822245 #758222 #22825F
square
#2F2282 #822245 #758222 #22825F
split-complementary
#2F2282 #825F22 #458222
monochromatic
#0C0921 #1D1551 #2F2282 #412FB3 #5F4ED1

Accessibility & contrast

On white

12.56
#2F2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2282
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2282#FFFFFF#000000##FFFFFF
##2F22821.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2282;
/* rgb */ color: rgb(47, 34, 130);
/* oklch */ color: oklch(33.8% 0.152 280.6);
Tailwind
colors: {
  custom: {
    50: '#735fa7',
    500: '#2f2282',
    950: '#000000',
  },
}
SCSS
$custom: #2f2282;
$custom-light: #735fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2282",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 248.125,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33791,
    "c": 0.15215,
    "h": 280.6
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#2F2282
secondary
#A6B44C
accent
#E246CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F2282

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

Preview Lab → · Contrast checker → · Palette generator →

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