#2F2081#2F2081

#2F2081 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.153 H 281.2°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2F2081
RGBrgb(47, 32, 129)
HSLhsl(249, 60%, 32%)
HSVhsv(249, 75%, 51%)
CMYKcmyk(63.6%, 75.2%, 0%, 49.4%)
CIE-LABlab(20.91, 36.04, -52.08)
CIE-LCHlch(20.91, 63.33, 304.68°)
OKLaboklab(33.39% 0.0298 -0.1502)
OKLCHoklch(33.39% 0.153 281.2)
XYZxyz(5.6500, 3.2219, 21.0888)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2081 #728120
analogous
#204281 #2F2081 #602081
triadic
#2F2081 #812F20 #20812F
tetradic
#2F2081 #812042 #728120 #208160
square
#2F2081 #812042 #728120 #208160
split-complementary
#2F2081 #816020 #428120
monochromatic
#0B081F #1D1450 #2F2081 #412CB2 #5F49D2

Accessibility & contrast

On white

12.77
#2F2081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2081
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2081#FFFFFF#000000##FFFFFF
##2F20811.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2081;
/* rgb */ color: rgb(47, 32, 129);
/* oklch */ color: oklch(33.4% 0.153 281.2);
Tailwind
colors: {
  custom: {
    50: '#735da7',
    500: '#2f2081',
    950: '#000000',
  },
}
SCSS
$custom: #2f2081;
$custom-light: #735da7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2081",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 129
  },
  "hsl": {
    "h": 249.278,
    "s": 60.248,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33392,
    "c": 0.1531,
    "h": 281.2
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#2F2081
secondary
#A3B449
accent
#E344CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F2081

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

Preview Lab → · Contrast checker → · Palette generator →

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