#2F2C86#2F2C86

#2F2C86 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.145 H 277.6°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#2F2C86
RGBrgb(47, 44, 134)
HSLhsl(242, 51%, 35%)
HSVhsv(242, 67%, 53%)
CMYKcmyk(64.9%, 67.2%, 0%, 47.5%)
CIE-LABlab(24.09, 30.37, -50.02)
CIE-LCHlch(24.09, 58.51, 301.26°)
OKLaboklab(35.82% 0.0192 -0.1442)
OKLCHoklch(35.82% 0.145 277.6)
XYZxyz(6.3747, 4.1264, 23.0102)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C86 #83862C
analogous
#2C5686 #2F2C86 #5C2C86
triadic
#2F2C86 #862F2C #2C862F
tetradic
#2F2C86 #862C56 #83862C #2C865C
square
#2F2C86 #862C56 #83862C #2C865C
split-complementary
#2F2C86 #865C2C #56862C
monochromatic
#0F0E2A #1F1D58 #2F2C86 #3F3BB4 #6561CB

Accessibility & contrast

On white

11.50
#2F2C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F2C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C86
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C86#FFFFFF#000000##FFFFFF
##2F2C861.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003584
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2c86;
/* rgb */ color: rgb(47, 44, 134);
/* oklch */ color: oklch(35.8% 0.145 277.6);
Tailwind
colors: {
  custom: {
    50: '#7365aa',
    500: '#2f2c86',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c86;
$custom-light: #7365aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c86",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 134
  },
  "hsl": {
    "h": 242,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35818,
    "c": 0.14544,
    "h": 277.6
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#2F2C86
secondary
#AFB15C
accent
#DA4ED5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2C86

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

Preview Lab → · Contrast checker → · Palette generator →

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