#2F2F76#2F2F76

#2F2F76 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 35.0% C 0.119 H 278.3°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2F2F76
RGBrgb(47, 47, 118)
HSLhsl(240, 43%, 32%)
HSVhsv(240, 60%, 46%)
CMYKcmyk(60.2%, 60.2%, 0%, 53.7%)
CIE-LABlab(23.49, 22.69, -40.88)
CIE-LCHlch(23.49, 46.76, 299.03°)
OKLaboklab(34.96% 0.0172 -0.1173)
OKLCHoklch(34.96% 0.119 278.3)
XYZxyz(5.4578, 3.9450, 17.6099)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F76 #76762F
analogous
#2F5376 #2F2F76 #532F76
triadic
#2F2F76 #762F2F #2F762F
tetradic
#2F2F76 #762F53 #76762F #2F7653
square
#2F2F76 #762F53 #76762F #2F7653
split-complementary
#2F2F76 #76532F #53762F
monochromatic
#0C0C1E #1E1E4A #2F2F76 #4040A2 #6060C0

Accessibility & contrast

On white

11.74
#2F2F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F2F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F76
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F76#FFFFFF#000000##FFFFFF
##2F2F761.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B78
Deuteranopia (green-blind)
#003575
Tritanopia (blue-blind)
#04404D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2f76;
/* rgb */ color: rgb(47, 47, 118);
/* oklch */ color: oklch(35.0% 0.119 278.3);
Tailwind
colors: {
  custom: {
    50: '#6f679e',
    500: '#2f2f76',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f76;
$custom-light: #6f679e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f76",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 240,
    "s": 43.03,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34956,
    "c": 0.11856,
    "h": 278.3
  },
  "luminance": 0.03945
}

Semantic roles & 50–950 ramp

primary
#2F2F76
secondary
#A7A75A
accent
#D355D3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F2F76

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

Preview Lab → · Contrast checker → · Palette generator →

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