#2F2479#2F2479

#2F2479 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.138 H 281.7°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2F2479
RGBrgb(47, 36, 121)
HSLhsl(248, 54%, 31%)
HSVhsv(248, 70%, 47%)
CMYKcmyk(61.2%, 70.2%, 0%, 52.5%)
CIE-LABlab(21.00, 30.96, -46.84)
CIE-LCHlch(21.00, 56.15, 303.46°)
OKLaboklab(33.22% 0.028 -0.1349)
OKLCHoklch(33.22% 0.138 281.7)
XYZxyz(5.2533, 3.2462, 18.4352)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2479 #6E7924
analogous
#244379 #2F2479 #592479
triadic
#2F2479 #792F24 #24792F
tetradic
#2F2479 #792443 #6E7924 #247959
square
#2F2479 #792443 #6E7924 #247959
split-complementary
#2F2479 #795924 #437924
monochromatic
#0A081B #1D164A #2F2479 #4132A8 #5D4DCA

Accessibility & contrast

On white

12.73
#2F2479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F2479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2479
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2479#FFFFFF#000000##FFFFFF
##2F24791.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#013A4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f2479;
/* rgb */ color: rgb(47, 36, 121);
/* oklch */ color: oklch(33.2% 0.138 281.7);
Tailwind
colors: {
  custom: {
    50: '#7160a1',
    500: '#2f2479',
    950: '#000000',
  },
}
SCSS
$custom: #2f2479;
$custom-light: #7160a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2479",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 247.765,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.13774,
    "h": 281.7
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

primary
#2F2479
secondary
#9FAC4D
accent
#DE4ACA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F2479

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

Preview Lab → · Contrast checker → · Palette generator →

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