#2F2087#2F2087

#2F2087 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.161 H 280.2°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2F2087
RGBrgb(47, 32, 135)
HSLhsl(249, 62%, 33%)
HSVhsv(249, 76%, 53%)
CMYKcmyk(65.2%, 76.3%, 0%, 47.1%)
CIE-LABlab(21.53, 37.99, -54.84)
CIE-LCHlch(21.53, 66.71, 304.71°)
OKLaboklab(34.02% 0.0284 -0.1582)
OKLCHoklch(34.02% 0.161 280.2)
XYZxyz(6.0606, 3.3862, 23.2512)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2087 #788720
analogous
#204487 #2F2087 #632087
triadic
#2F2087 #872F20 #20872F
tetradic
#2F2087 #872044 #788720 #208763
square
#2F2087 #872044 #788720 #208763
split-complementary
#2F2087 #876320 #448720
monochromatic
#0D0924 #1E1456 #2F2087 #402CB8 #604DD5

Accessibility & contrast

On white

12.52
#2F2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2087
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2087#FFFFFF#000000##FFFFFF
##2F20871.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2087;
/* rgb */ color: rgb(47, 32, 135);
/* oklch */ color: oklch(34.0% 0.161 280.2);
Tailwind
colors: {
  custom: {
    50: '#745eab',
    500: '#2f2087',
    950: '#000000',
  },
}
SCSS
$custom: #2f2087;
$custom-light: #745eab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2087",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 248.738,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34015,
    "c": 0.16077,
    "h": 280.2
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2087

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

Preview Lab → · Contrast checker → · Palette generator →

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