#2F2979#2F2979

#2F2979 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.131 H 280.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2F2979
RGBrgb(47, 41, 121)
HSLhsl(245, 49%, 32%)
HSVhsv(245, 66%, 47%)
CMYKcmyk(61.2%, 66.1%, 0%, 52.5%)
CIE-LABlab(22.20, 27.76, -44.90)
CIE-LCHlch(22.20, 52.78, 301.73°)
OKLaboklab(34.09% 0.0233 -0.1291)
OKLCHoklch(34.09% 0.131 280.2)
XYZxyz(5.4153, 3.5703, 18.4892)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2979 #737929
analogous
#294B79 #2F2979 #572979
triadic
#2F2979 #792F29 #29792F
tetradic
#2F2979 #79294B #737929 #297957
square
#2F2979 #79294B #737929 #297957
split-complementary
#2F2979 #795729 #4B7929
monochromatic
#0B0A1E #1D1A4B #2F2979 #4138A7 #5F56C6

Accessibility & contrast

On white

12.25
#2F2979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F2979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2979
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2979#FFFFFF#000000##FFFFFF
##2F29791.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2979;
/* rgb */ color: rgb(47, 41, 121);
/* oklch */ color: oklch(34.1% 0.131 280.2);
Tailwind
colors: {
  custom: {
    50: '#7063a0',
    500: '#2f2979',
    950: '#000000',
  },
}
SCSS
$custom: #2f2979;
$custom-light: #7063a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2979",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 244.5,
    "s": 49.383,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34085,
    "c": 0.13122,
    "h": 280.2
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#2F2979
secondary
#A4AB53
accent
#D94FCF
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2F2979

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

Preview Lab → · Contrast checker → · Palette generator →

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