#2F2386#2F2386

#2F2386 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.156 H 279.7°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#2F2386
RGBrgb(47, 35, 134)
HSLhsl(247, 59%, 33%)
HSVhsv(247, 74%, 53%)
CMYKcmyk(64.9%, 73.9%, 0%, 47.5%)
CIE-LABlab(22.04, 35.94, -53.37)
CIE-LCHlch(22.04, 64.34, 303.96°)
OKLaboklab(34.35% 0.0265 -0.154)
OKLCHoklch(34.35% 0.156 279.7)
XYZxyz(6.0750, 3.5272, 22.9103)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2386 #7A8623
analogous
#234886 #2F2386 #602386
triadic
#2F2386 #862F23 #23862F
tetradic
#2F2386 #862348 #7A8623 #238660
square
#2F2386 #862348 #7A8623 #238660
split-complementary
#2F2386 #866023 #488623
monochromatic
#0D0A25 #1E1655 #2F2386 #4030B7 #6152D2

Accessibility & contrast

On white

12.31
#2F2386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F2386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2386
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2386#FFFFFF#000000##FFFFFF
##2F23861.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2386;
/* rgb */ color: rgb(47, 35, 134);
/* oklch */ color: oklch(34.3% 0.156 279.7);
Tailwind
colors: {
  custom: {
    50: '#735faa',
    500: '#2f2386',
    950: '#000000',
  },
}
SCSS
$custom: #2f2386;
$custom-light: #735faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2386",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 247.273,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34348,
    "c": 0.15623,
    "h": 279.7
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#2F2386
secondary
#A9B54F
accent
#E246CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2386

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

Preview Lab → · Contrast checker → · Palette generator →

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