#2F2F84#2F2F84

#2F2F84 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.139 H 276.9°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2F2F84
RGBrgb(47, 47, 132)
HSLhsl(240, 47%, 35%)
HSVhsv(240, 64%, 52%)
CMYKcmyk(64.4%, 64.4%, 0%, 48.2%)
CIE-LABlab(24.65, 27.70, -47.84)
CIE-LCHlch(24.65, 55.28, 300.07°)
OKLaboklab(36.18% 0.0167 -0.1378)
OKLCHoklch(36.18% 0.139 276.9)
XYZxyz(6.3523, 4.3028, 22.3211)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F84 #84842F
analogous
#2F5984 #2F2F84 #592F84
triadic
#2F2F84 #842F2F #2F842F
tetradic
#2F2F84 #842F59 #84842F #2F8459
square
#2F2F84 #842F59 #84842F #2F8459
split-complementary
#2F2F84 #84592F #59842F
monochromatic
#0F0F2A #1F1F57 #2F2F84 #3F3FB1 #6565C8

Accessibility & contrast

On white

11.29
#2F2F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F2F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F84
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F84#FFFFFF#000000##FFFFFF
##2F2F841.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E87
Deuteranopia (green-blind)
#003782
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2f84;
/* rgb */ color: rgb(47, 47, 132);
/* oklch */ color: oklch(36.2% 0.139 276.9);
Tailwind
colors: {
  custom: {
    50: '#7267a9',
    500: '#2f2f84',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f84;
$custom-light: #7267a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f84",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 240,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36175,
    "c": 0.13878,
    "h": 276.9
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

primary
#2F2F84
secondary
#AFAF60
accent
#D751D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2F84

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

Preview Lab → · Contrast checker → · Palette generator →

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