#2F2587#2F2587

#2F2587 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.155 H 279.2°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2F2587
RGBrgb(47, 37, 135)
HSLhsl(246, 57%, 34%)
HSVhsv(246, 73%, 53%)
CMYKcmyk(65.2%, 72.6%, 0%, 47.1%)
CIE-LABlab(22.57, 35.08, -53.12)
CIE-LCHlch(22.57, 63.66, 303.44°)
OKLaboklab(34.76% 0.0248 -0.1533)
OKLCHoklch(34.76% 0.155 279.2)
XYZxyz(6.2056, 3.6763, 23.2995)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2587 #7D8725
analogous
#254C87 #2F2587 #602587
triadic
#2F2587 #872F25 #25872F
tetradic
#2F2587 #87254C #7D8725 #258760
square
#2F2587 #87254C #7D8725 #258760
split-complementary
#2F2587 #876025 #4C8725
monochromatic
#0E0B27 #1E1857 #2F2587 #4032B7 #6256D1

Accessibility & contrast

On white

12.10
#2F2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2587
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2587#FFFFFF#000000##FFFFFF
##2F25871.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2587;
/* rgb */ color: rgb(47, 37, 135);
/* oklch */ color: oklch(34.8% 0.155 279.2);
Tailwind
colors: {
  custom: {
    50: '#7361ab',
    500: '#2f2587',
    950: '#000000',
  },
}
SCSS
$custom: #2f2587;
$custom-light: #7361ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2587",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 246.122,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34756,
    "c": 0.15526,
    "h": 279.2
  },
  "luminance": 0.03677
}

Semantic roles & 50–950 ramp

primary
#2F2587
secondary
#ABB553
accent
#E048D1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2587

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

Preview Lab → · Contrast checker → · Palette generator →

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