#2F2D86#2F2D86

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

Color values

HEX#2F2D86
RGBrgb(47, 45, 134)
HSLhsl(241, 50%, 35%)
HSVhsv(241, 66%, 53%)
CMYKcmyk(64.9%, 66.4%, 0%, 47.5%)
CIE-LABlab(24.33, 29.72, -49.62)
CIE-LCHlch(24.33, 57.84, 300.92°)
OKLaboklab(35.99% 0.0184 -0.143)
OKLCHoklch(35.99% 0.144 277.3)
XYZxyz(6.4124, 4.2018, 23.0228)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D86 #84862D
analogous
#2D5886 #2F2D86 #5B2D86
triadic
#2F2D86 #862F2D #2D862F
tetradic
#2F2D86 #862D58 #84862D #2D865B
square
#2F2D86 #862D58 #84862D #2D865B
split-complementary
#2F2D86 #865B2D #58862D
monochromatic
#0F0E2A #1F1E58 #2F2D86 #3F3CB4 #6563CB

Accessibility & contrast

On white

11.41
#2F2D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F2D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D86
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D86#FFFFFF#000000##FFFFFF
##2F2D861.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2d86;
/* rgb */ color: rgb(47, 45, 134);
/* oklch */ color: oklch(36.0% 0.144 277.3);
Tailwind
colors: {
  custom: {
    50: '#7266aa',
    500: '#2f2d86',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d86;
$custom-light: #7266aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d86",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 241.348,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35995,
    "c": 0.14416,
    "h": 277.3
  },
  "luminance": 0.04202
}

Semantic roles & 50–950 ramp

primary
#2F2D86
secondary
#AFB15E
accent
#D94FD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2D86

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

Preview Lab → · Contrast checker → · Palette generator →

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