#2F2F86#2F2F86

#2F2F86 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.142 H 276.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2F2F86
RGBrgb(47, 47, 134)
HSLhsl(240, 48%, 35%)
HSVhsv(240, 65%, 53%)
CMYKcmyk(64.9%, 64.9%, 0%, 47.5%)
CIE-LABlab(24.82, 28.41, -48.81)
CIE-LCHlch(24.82, 56.48, 300.20°)
OKLaboklab(36.36% 0.0166 -0.1406)
OKLCHoklch(36.36% 0.142 276.7)
XYZxyz(6.4905, 4.3581, 23.0488)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F86 #86862F
analogous
#2F5A86 #2F2F86 #5A2F86
triadic
#2F2F86 #862F2F #2F862F
tetradic
#2F2F86 #862F5A #86862F #2F865A
square
#2F2F86 #862F5A #86862F #2F865A
split-complementary
#2F2F86 #865A2F #5A862F
monochromatic
#0F0F2B #1F1F59 #2F2F86 #3F3FB3 #6666C9

Accessibility & contrast

On white

11.22
#2F2F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F2F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F86
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F86#FFFFFF#000000##FFFFFF
##2F2F861.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2f86;
/* rgb */ color: rgb(47, 47, 134);
/* oklch */ color: oklch(36.4% 0.142 276.7);
Tailwind
colors: {
  custom: {
    50: '#7268aa',
    500: '#2f2f86',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f86;
$custom-light: #7268aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f86",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 240,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36356,
    "c": 0.14159,
    "h": 276.7
  },
  "luminance": 0.04359
}

Semantic roles & 50–950 ramp

primary
#2F2F86
secondary
#B0B060
accent
#D850D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2F86

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

Preview Lab → · Contrast checker → · Palette generator →

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