#2F2976#2F2976

#2F2976 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.127 H 280.7°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#2F2976
RGBrgb(47, 41, 118)
HSLhsl(245, 48%, 31%)
HSVhsv(245, 65%, 46%)
CMYKcmyk(60.2%, 65.3%, 0%, 53.7%)
CIE-LABlab(21.94, 26.71, -43.41)
CIE-LCHlch(21.94, 50.96, 301.60°)
OKLaboklab(33.81% 0.0235 -0.1248)
OKLCHoklch(33.81% 0.127 280.7)
XYZxyz(5.2342, 3.4979, 17.5354)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2976 #707629
analogous
#294976 #2F2976 #552976
triadic
#2F2976 #762F29 #29762F
tetradic
#2F2976 #762949 #707629 #297655
square
#2F2976 #762949 #707629 #297655
split-complementary
#2F2976 #765529 #497629
monochromatic
#0B091B #1D1949 #2F2976 #4139A3 #5E55C4

Accessibility & contrast

On white

12.36
#2F2976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F2976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2976
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2976#FFFFFF#000000##FFFFFF
##2F29761.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#053C4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2976;
/* rgb */ color: rgb(47, 41, 118);
/* oklch */ color: oklch(33.8% 0.127 280.7);
Tailwind
colors: {
  custom: {
    50: '#70639e',
    500: '#2f2976',
    950: '#000000',
  },
}
SCSS
$custom: #2f2976;
$custom-light: #70639e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2976",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 118
  },
  "hsl": {
    "h": 244.675,
    "s": 48.428,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33814,
    "c": 0.12695,
    "h": 280.7
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#2F2976
secondary
#A1A853
accent
#D850CD
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2976

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

Preview Lab → · Contrast checker → · Palette generator →

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