#2F2886#2F2886

#2F2886 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.150 H 278.6°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#2F2886
RGBrgb(47, 40, 134)
HSLhsl(244, 54%, 34%)
HSVhsv(244, 70%, 53%)
CMYKcmyk(64.9%, 70.1%, 0%, 47.5%)
CIE-LABlab(23.14, 32.90, -51.56)
CIE-LCHlch(23.14, 61.16, 302.55°)
OKLaboklab(35.14% 0.0226 -0.1487)
OKLCHoklch(35.14% 0.15 278.6)
XYZxyz(6.2328, 3.8427, 22.9629)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2886 #7F8628
analogous
#285086 #2F2886 #5E2886
triadic
#2F2886 #862F28 #28862F
tetradic
#2F2886 #862850 #7F8628 #28865E
square
#2F2886 #862850 #7F8628 #28865E
split-complementary
#2F2886 #865E28 #508628
monochromatic
#0E0C28 #1E1A57 #2F2886 #4036B5 #635BCE

Accessibility & contrast

On white

11.87
#2F2886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F2886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2886
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2886#FFFFFF#000000##FFFFFF
##2F28861.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2886;
/* rgb */ color: rgb(47, 40, 134);
/* oklch */ color: oklch(35.1% 0.150 278.6);
Tailwind
colors: {
  custom: {
    50: '#7363aa',
    500: '#2f2886',
    950: '#000000',
  },
}
SCSS
$custom: #2f2886;
$custom-light: #7363aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2886",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 244.468,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35138,
    "c": 0.15038,
    "h": 278.6
  },
  "luminance": 0.03843
}

Semantic roles & 50–950 ramp

primary
#2F2886
secondary
#ACB357
accent
#DD4AD2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2886

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

Preview Lab → · Contrast checker → · Palette generator →

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