#2F2D79#2F2D79

#2F2D79 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.126 H 278.8°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2F2D79
RGBrgb(47, 45, 121)
HSLhsl(242, 46%, 33%)
HSVhsv(242, 63%, 47%)
CMYKcmyk(61.2%, 62.8%, 0%, 52.5%)
CIE-LABlab(23.21, 25.11, -43.25)
CIE-LCHlch(23.21, 50.01, 300.14°)
OKLaboklab(34.83% 0.0192 -0.1243)
OKLCHoklch(34.83% 0.126 278.8)
XYZxyz(5.5608, 3.8612, 18.5377)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D79 #77792D
analogous
#2D5179 #2F2D79 #552D79
triadic
#2F2D79 #792F2D #2D792F
tetradic
#2F2D79 #792D51 #77792D #2D7955
square
#2F2D79 #792D51 #77792D #2D7955
split-complementary
#2F2D79 #79552D #51792D
monochromatic
#0C0C20 #1E1C4C #2F2D79 #403EA6 #605DC3

Accessibility & contrast

On white

11.85
#2F2D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F2D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D79
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D79#FFFFFF#000000##FFFFFF
##2F2D791.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2d79;
/* rgb */ color: rgb(47, 45, 121);
/* oklch */ color: oklch(34.8% 0.126 278.8);
Tailwind
colors: {
  custom: {
    50: '#7066a0',
    500: '#2f2d79',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d79;
$custom-light: #7066a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d79",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 241.579,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34825,
    "c": 0.12577,
    "h": 278.8
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#2F2D79
secondary
#A7A958
accent
#D552D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2F2D79

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

Preview Lab → · Contrast checker → · Palette generator →

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