#2F2F82#2F2F82

#2F2F82 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.136 H 277.1°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2F2F82
RGBrgb(47, 47, 130)
HSLhsl(240, 47%, 35%)
HSVhsv(240, 64%, 51%)
CMYKcmyk(63.8%, 63.8%, 0%, 49%)
CIE-LABlab(24.48, 26.99, -46.87)
CIE-LCHlch(24.48, 54.08, 299.93°)
OKLaboklab(36% 0.0168 -0.1349)
OKLCHoklch(36% 0.136 277.1)
XYZxyz(6.2168, 4.2486, 21.6072)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F82 #82822F
analogous
#2F5982 #2F2F82 #592F82
triadic
#2F2F82 #822F2F #2F822F
tetradic
#2F2F82 #822F59 #82822F #2F8259
square
#2F2F82 #822F59 #82822F #2F8259
split-complementary
#2F2F82 #82592F #59822F
monochromatic
#0E0E28 #1F1F55 #2F2F82 #3F3FAF #6464C7

Accessibility & contrast

On white

11.35
#2F2F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F2F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F82
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F82#FFFFFF#000000##FFFFFF
##2F2F821.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2f82;
/* rgb */ color: rgb(47, 47, 130);
/* oklch */ color: oklch(36.0% 0.136 277.1);
Tailwind
colors: {
  custom: {
    50: '#7167a7',
    500: '#2f2f82',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f82;
$custom-light: #7167a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f82",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 240,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35996,
    "c": 0.13596,
    "h": 277.1
  },
  "luminance": 0.04249
}

Semantic roles & 50–950 ramp

primary
#2F2F82
secondary
#AEAE5F
accent
#D751D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2F82

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

Preview Lab → · Contrast checker → · Palette generator →

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