#2F2579#2F2579

#2F2579 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.136 H 281.4°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2F2579
RGBrgb(47, 37, 121)
HSLhsl(247, 53%, 31%)
HSVhsv(247, 69%, 47%)
CMYKcmyk(61.2%, 69.4%, 0%, 52.5%)
CIE-LABlab(21.24, 30.33, -46.46)
CIE-LCHlch(21.24, 55.49, 303.13°)
OKLaboklab(33.39% 0.0271 -0.1338)
OKLCHoklch(33.39% 0.136 281.4)
XYZxyz(5.2840, 3.3076, 18.4454)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2579 #6F7925
analogous
#254579 #2F2579 #592579
triadic
#2F2579 #792F25 #25792F
tetradic
#2F2579 #792545 #6F7925 #257959
square
#2F2579 #792545 #6F7925 #257959
split-complementary
#2F2579 #795925 #457925
monochromatic
#0B081B #1D174A #2F2579 #4133A8 #5E4FC9

Accessibility & contrast

On white

12.64
#2F2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2579
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2579#FFFFFF#000000##FFFFFF
##2F25791.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2579;
/* rgb */ color: rgb(47, 37, 121);
/* oklch */ color: oklch(33.4% 0.136 281.4);
Tailwind
colors: {
  custom: {
    50: '#7160a0',
    500: '#2f2579',
    950: '#000000',
  },
}
SCSS
$custom: #2f2579;
$custom-light: #7160a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2579",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 247.143,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33388,
    "c": 0.13647,
    "h": 281.4
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#2F2579
secondary
#A0AB4E
accent
#DD4BCB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F2579

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

Preview Lab → · Contrast checker → · Palette generator →

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