#2F2086#2F2086

#2F2086 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.160 H 280.3°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2F2086
RGBrgb(47, 32, 134)
HSLhsl(249, 61%, 33%)
HSVhsv(249, 76%, 53%)
CMYKcmyk(64.9%, 76.1%, 0%, 47.5%)
CIE-LABlab(21.42, 37.67, -54.38)
CIE-LCHlch(21.42, 66.15, 304.71°)
OKLaboklab(33.91% 0.0286 -0.1569)
OKLCHoklch(33.91% 0.16 280.3)
XYZxyz(5.9905, 3.3581, 22.8821)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2086 #778620
analogous
#204486 #2F2086 #622086
triadic
#2F2086 #862F20 #20862F
tetradic
#2F2086 #862044 #778620 #208662
square
#2F2086 #862044 #778620 #208662
split-complementary
#2F2086 #866220 #448620
monochromatic
#0C0823 #1E1455 #2F2086 #402CB7 #604CD4

Accessibility & contrast

On white

12.56
#2F2086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F2086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2086
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2086#FFFFFF#000000##FFFFFF
##2F20861.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2086;
/* rgb */ color: rgb(47, 32, 134);
/* oklch */ color: oklch(33.9% 0.160 280.3);
Tailwind
colors: {
  custom: {
    50: '#745eaa',
    500: '#2f2086',
    950: '#000000',
  },
}
SCSS
$custom: #2f2086;
$custom-light: #745eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2086",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 248.824,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3391,
    "c": 0.15951,
    "h": 280.3
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#2F2086
secondary
#A7B74B
accent
#E543CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F2086

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

Preview Lab → · Contrast checker → · Palette generator →

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