#2F2578#2F2578

#2F2578 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.135 H 281.6°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#2F2578
RGBrgb(47, 37, 120)
HSLhsl(247, 53%, 31%)
HSVhsv(247, 69%, 47%)
CMYKcmyk(60.8%, 69.2%, 0%, 52.9%)
CIE-LABlab(21.14, 29.99, -45.98)
CIE-LCHlch(21.14, 54.89, 303.11°)
OKLaboklab(33.29% 0.0272 -0.1323)
OKLCHoklch(33.29% 0.135 281.6)
XYZxyz(5.2230, 3.2832, 18.1242)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2578 #6E7825
analogous
#254478 #2F2578 #582578
triadic
#2F2578 #782F25 #25782F
tetradic
#2F2578 #782544 #6E7825 #257858
square
#2F2578 #782544 #6E7825 #257858
split-complementary
#2F2578 #785825 #447825
monochromatic
#0A081A #1D1749 #2F2578 #4133A7 #5D4FC9

Accessibility & contrast

On white

12.68
#2F2578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F2578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2578
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2578#FFFFFF#000000##FFFFFF
##2F25781.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#023A4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2578;
/* rgb */ color: rgb(47, 37, 120);
/* oklch */ color: oklch(33.3% 0.135 281.6);
Tailwind
colors: {
  custom: {
    50: '#7060a0',
    500: '#2f2578',
    950: '#000000',
  },
}
SCSS
$custom: #2f2578;
$custom-light: #7060a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2578",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 120
  },
  "hsl": {
    "h": 247.229,
    "s": 52.866,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33293,
    "c": 0.1351,
    "h": 281.6
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#2F2578
secondary
#9FAA4E
accent
#DC4CCB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2F2578

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

Preview Lab → · Contrast checker → · Palette generator →

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