#2F2C76#2F2C76

#2F2C76 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.123 H 279.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2F2C76
RGBrgb(47, 44, 118)
HSLhsl(242, 46%, 32%)
HSVhsv(242, 63%, 46%)
CMYKcmyk(60.2%, 62.7%, 0%, 53.7%)
CIE-LABlab(22.70, 24.71, -42.16)
CIE-LCHlch(22.70, 48.87, 300.38°)
OKLaboklab(34.37% 0.0204 -0.1211)
OKLCHoklch(34.37% 0.123 279.6)
XYZxyz(5.3420, 3.7133, 17.5713)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C76 #73762C
analogous
#2C4E76 #2F2C76 #542C76
triadic
#2F2C76 #762F2C #2C762F
tetradic
#2F2C76 #762C4E #73762C #2C7654
square
#2F2C76 #762C4E #73762C #2C7654
split-complementary
#2F2C76 #76542C #4E762C
monochromatic
#0B0B1D #1D1B49 #2F2C76 #413DA3 #5F5BC2

Accessibility & contrast

On white

12.05
#2F2C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F2C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C76
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C76#FFFFFF#000000##FFFFFF
##2F2C761.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003978
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#053E4C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2c76;
/* rgb */ color: rgb(47, 44, 118);
/* oklch */ color: oklch(34.4% 0.123 279.6);
Tailwind
colors: {
  custom: {
    50: '#6f659e',
    500: '#2f2c76',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c76;
$custom-light: #6f659e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c76",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 118
  },
  "hsl": {
    "h": 242.432,
    "s": 45.679,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34374,
    "c": 0.1228,
    "h": 279.6
  },
  "luminance": 0.03714
}

Semantic roles & 50–950 ramp

primary
#2F2C76
secondary
#A4A756
accent
#D552D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2F2C76

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

Preview Lab → · Contrast checker → · Palette generator →

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