#2F2D76#2F2D76

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

Color values

HEX#2F2D76
RGBrgb(47, 45, 118)
HSLhsl(242, 45%, 32%)
HSVhsv(242, 62%, 46%)
CMYKcmyk(60.2%, 61.9%, 0%, 53.7%)
CIE-LABlab(22.96, 24.04, -41.74)
CIE-LCHlch(22.96, 48.17, 299.94°)
OKLaboklab(34.57% 0.0193 -0.1198)
OKLCHoklch(34.57% 0.121 279.2)
XYZxyz(5.3797, 3.7887, 17.5838)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D76 #74762D
analogous
#2D5076 #2F2D76 #542D76
triadic
#2F2D76 #762F2D #2D762F
tetradic
#2F2D76 #762D50 #74762D #2D7654
square
#2F2D76 #762D50 #74762D #2D7654
split-complementary
#2F2D76 #76542D #50762D
monochromatic
#0C0B1D #1D1C4A #2F2D76 #413EA2 #5F5CC1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F2D76#FFFFFF#000000##FFFFFF
##2F2D761.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)
#003A78
Deuteranopia (green-blind)
#003475
Tritanopia (blue-blind)
#043F4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2d76;
/* rgb */ color: rgb(47, 45, 118);
/* oklch */ color: oklch(34.6% 0.121 279.2);
Tailwind
colors: {
  custom: {
    50: '#6f669e',
    500: '#2f2d76',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d76;
$custom-light: #6f669e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d76",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 118
  },
  "hsl": {
    "h": 241.644,
    "s": 44.785,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34566,
    "c": 0.1214,
    "h": 279.2
  },
  "luminance": 0.03789
}

Semantic roles & 50–950 ramp

primary
#2F2D76
secondary
#A5A757
accent
#D453D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F2D76

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

Preview Lab → · Contrast checker → · Palette generator →

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