#2F2584#2F2584

#2F2584 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.151 H 279.6°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2F2584
RGBrgb(47, 37, 132)
HSLhsl(246, 56%, 33%)
HSVhsv(246, 72%, 52%)
CMYKcmyk(64.4%, 72%, 0%, 48.2%)
CIE-LABlab(22.28, 34.07, -51.72)
CIE-LCHlch(22.28, 61.93, 303.37°)
OKLaboklab(34.46% 0.0253 -0.1492)
OKLCHoklch(34.46% 0.151 279.6)
XYZxyz(5.9974, 3.5930, 22.2028)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2584 #7A8425
analogous
#254A84 #2F2584 #5E2584
triadic
#2F2584 #842F25 #25842F
tetradic
#2F2584 #84254A #7A8425 #25845E
square
#2F2584 #84254A #7A8425 #25845E
split-complementary
#2F2584 #845E25 #4A8425
monochromatic
#0D0A24 #1E1854 #2F2584 #4032B4 #6154CF

Accessibility & contrast

On white

12.22
#2F2584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2584
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2584#FFFFFF#000000##FFFFFF
##2F25841.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#003F51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2584;
/* rgb */ color: rgb(47, 37, 132);
/* oklch */ color: oklch(34.5% 0.151 279.6);
Tailwind
colors: {
  custom: {
    50: '#7361a9',
    500: '#2f2584',
    950: '#000000',
  },
}
SCSS
$custom: #2f2584;
$custom-light: #7361a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2584",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 132
  },
  "hsl": {
    "h": 246.316,
    "s": 56.213,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34456,
    "c": 0.1513,
    "h": 279.6
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#2F2584
secondary
#A9B351
accent
#E048D0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2584

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

Preview Lab → · Contrast checker → · Palette generator →

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