#2F2080#2F2080

#2F2080 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.152 H 281.4°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#2F2080
RGBrgb(47, 32, 128)
HSLhsl(249, 60%, 31%)
HSVhsv(249, 75%, 50%)
CMYKcmyk(63.3%, 75%, 0%, 49.8%)
CIE-LABlab(20.81, 35.71, -51.61)
CIE-LCHlch(20.81, 62.76, 304.68°)
OKLaboklab(33.29% 0.03 -0.1488)
OKLCHoklch(33.29% 0.152 281.4)
XYZxyz(5.5839, 3.1955, 20.7404)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2080 #718020
analogous
#204180 #2F2080 #5F2080
triadic
#2F2080 #802F20 #20802F
tetradic
#2F2080 #802041 #718020 #20805F
square
#2F2080 #802041 #718020 #20805F
split-complementary
#2F2080 #805F20 #418020
monochromatic
#0B081E #1D144F #2F2080 #412CB1 #5E49D1

Accessibility & contrast

On white

12.81
#2F2080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F2080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2080
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2080#FFFFFF#000000##FFFFFF
##2F20801.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f2080;
/* rgb */ color: rgb(47, 32, 128);
/* oklch */ color: oklch(33.3% 0.152 281.4);
Tailwind
colors: {
  custom: {
    50: '#725da6',
    500: '#2f2080',
    950: '#000000',
  },
}
SCSS
$custom: #2f2080;
$custom-light: #725da6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2080",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 249.375,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3329,
    "c": 0.15181,
    "h": 281.4
  },
  "luminance": 0.03196
}

Semantic roles & 50–950 ramp

primary
#2F2080
secondary
#A2B349
accent
#E345CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F2080

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

Preview Lab → · Contrast checker → · Palette generator →

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