#2F2A79#2F2A79

#2F2A79 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.130 H 279.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2F2A79
RGBrgb(47, 42, 121)
HSLhsl(244, 48%, 32%)
HSVhsv(244, 65%, 47%)
CMYKcmyk(61.2%, 65.3%, 0%, 52.5%)
CIE-LABlab(22.45, 27.10, -44.49)
CIE-LCHlch(22.45, 52.09, 301.35°)
OKLaboklab(34.27% 0.0223 -0.1279)
OKLCHoklch(34.27% 0.13 279.9)
XYZxyz(5.4504, 3.6404, 18.5009)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A79 #74792A
analogous
#2A4D79 #2F2A79 #562A79
triadic
#2F2A79 #792F2A #2A792F
tetradic
#2F2A79 #792A4D #74792A #2A7956
square
#2F2A79 #792A4D #74792A #2A7956
split-complementary
#2F2A79 #79562A #4D792A
monochromatic
#0C0A1E #1D1A4C #2F2A79 #413AA6 #5F58C5

Accessibility & contrast

On white

12.15
#2F2A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F2A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A79
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A79#FFFFFF#000000##FFFFFF
##2F2A791.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2a79;
/* rgb */ color: rgb(47, 42, 121);
/* oklch */ color: oklch(34.3% 0.130 279.9);
Tailwind
colors: {
  custom: {
    50: '#7064a0',
    500: '#2f2a79',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a79;
$custom-light: #7064a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a79",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 243.797,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34266,
    "c": 0.12987,
    "h": 279.9
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#2F2A79
secondary
#A5AB54
accent
#D850CF
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #2F2A79

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

Preview Lab → · Contrast checker → · Palette generator →

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