#2F2487#2F2487

#2F2487 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.156 H 279.4°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#2F2487
RGBrgb(47, 36, 135)
HSLhsl(247, 58%, 34%)
HSVhsv(247, 73%, 53%)
CMYKcmyk(65.2%, 73.3%, 0%, 47.1%)
CIE-LABlab(22.36, 35.68, -53.48)
CIE-LCHlch(22.36, 64.29, 303.71°)
OKLaboklab(34.6% 0.0255 -0.1543)
OKLCHoklch(34.6% 0.156 279.4)
XYZxyz(6.1749, 3.6149, 23.2893)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2487 #7C8724
analogous
#244A87 #2F2487 #602487
triadic
#2F2487 #872F24 #24872F
tetradic
#2F2487 #87244A #7C8724 #248760
square
#2F2487 #87244A #7C8724 #248760
split-complementary
#2F2487 #876024 #4A8724
monochromatic
#0D0A26 #1E1757 #2F2487 #4031B7 #6254D1

Accessibility & contrast

On white

12.19
#2F2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2487
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2487#FFFFFF#000000##FFFFFF
##2F24871.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2487;
/* rgb */ color: rgb(47, 36, 135);
/* oklch */ color: oklch(34.6% 0.156 279.4);
Tailwind
colors: {
  custom: {
    50: '#7460ab',
    500: '#2f2487',
    950: '#000000',
  },
}
SCSS
$custom: #2f2487;
$custom-light: #7460ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2487",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 246.667,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34602,
    "c": 0.15639,
    "h": 279.4
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#2F2487
secondary
#AAB551
accent
#E147D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2487

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

Preview Lab → · Contrast checker → · Palette generator →

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