#2F2182#2F2182

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

Color values

HEX#2F2182
RGBrgb(47, 33, 130)
HSLhsl(249, 60%, 32%)
HSVhsv(249, 75%, 51%)
CMYKcmyk(63.8%, 74.6%, 0%, 49%)
CIE-LABlab(21.22, 35.78, -52.20)
CIE-LCHlch(21.22, 63.29, 304.43°)
OKLaboklab(33.64% 0.0288 -0.1505)
OKLCHoklch(33.64% 0.153 280.8)
XYZxyz(5.7441, 3.3033, 21.4497)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2182 #748221
analogous
#214482 #2F2182 #602182
triadic
#2F2182 #822F21 #21822F
tetradic
#2F2182 #822144 #748221 #218260
square
#2F2182 #822144 #748221 #218260
split-complementary
#2F2182 #826021 #448221
monochromatic
#0C0820 #1D1551 #2F2182 #412DB3 #5F4CD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F2182#FFFFFF#000000##FFFFFF
##2F21821.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)
#003685
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2182;
/* rgb */ color: rgb(47, 33, 130);
/* oklch */ color: oklch(33.6% 0.153 280.8);
Tailwind
colors: {
  custom: {
    50: '#735ea7',
    500: '#2f2182',
    950: '#000000',
  },
}
SCSS
$custom: #2f2182;
$custom-light: #735ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2182",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 248.66,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33642,
    "c": 0.15328,
    "h": 280.8
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#2F2182
secondary
#A5B44A
accent
#E345CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F2182

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

Preview Lab → · Contrast checker → · Palette generator →

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