#2F2C79#2F2C79

#2F2C79 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.127 H 279.2°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#2F2C79
RGBrgb(47, 44, 121)
HSLhsl(242, 47%, 32%)
HSVhsv(242, 64%, 47%)
CMYKcmyk(61.2%, 63.6%, 0%, 52.5%)
CIE-LABlab(22.95, 25.78, -43.67)
CIE-LCHlch(22.95, 50.71, 300.55°)
OKLaboklab(34.64% 0.0203 -0.1255)
OKLCHoklch(34.64% 0.127 279.2)
XYZxyz(5.5231, 3.7858, 18.5251)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C79 #76792C
analogous
#2C4F79 #2F2C79 #562C79
triadic
#2F2C79 #792F2C #2C792F
tetradic
#2F2C79 #792C4F #76792C #2C7956
square
#2F2C79 #792C4F #76792C #2C7956
split-complementary
#2F2C79 #79562C #4F792C
monochromatic
#0C0B1F #1E1C4C #2F2C79 #403CA6 #605CC4

Accessibility & contrast

On white

11.95
#2F2C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F2C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C79
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C79#FFFFFF#000000##FFFFFF
##2F2C791.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2c79;
/* rgb */ color: rgb(47, 44, 121);
/* oklch */ color: oklch(34.6% 0.127 279.2);
Tailwind
colors: {
  custom: {
    50: '#7065a0',
    500: '#2f2c79',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c79;
$custom-light: #7065a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c79",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 121
  },
  "hsl": {
    "h": 242.338,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34636,
    "c": 0.12714,
    "h": 279.2
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#2F2C79
secondary
#A7AA57
accent
#D651D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #2F2C79

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

Preview Lab → · Contrast checker → · Palette generator →

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