#2F2972#2F2972

#2F2972 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.121 H 281.3°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2F2972
RGBrgb(47, 41, 114)
HSLhsl(245, 47%, 30%)
HSVhsv(245, 64%, 45%)
CMYKcmyk(58.8%, 64%, 0%, 55.3%)
CIE-LABlab(21.60, 25.31, -41.39)
CIE-LCHlch(21.60, 48.52, 301.44°)
OKLaboklab(33.46% 0.0238 -0.1188)
OKLCHoklch(33.46% 0.121 281.3)
XYZxyz(5.0015, 3.4048, 16.3100)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2972 #6C7229
analogous
#294772 #2F2972 #542972
triadic
#2F2972 #722F29 #29722F
tetradic
#2F2972 #722947 #6C7229 #297254
square
#2F2972 #722947 #6C7229 #297254
split-complementary
#2F2972 #725429 #477229
monochromatic
#0A0918 #1C1945 #2F2972 #42399F #5D54C1

Accessibility & contrast

On white

12.49
#2F2972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F2972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2972
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2972#FFFFFF#000000##FFFFFF
##2F29721.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#0D3B49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2972;
/* rgb */ color: rgb(47, 41, 114);
/* oklch */ color: oklch(33.5% 0.121 281.3);
Tailwind
colors: {
  custom: {
    50: '#6f639b',
    500: '#2f2972',
    950: '#000000',
  },
}
SCSS
$custom: #2f2972;
$custom-light: #6f639b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2972",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 244.932,
    "s": 47.097,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33459,
    "c": 0.1212,
    "h": 281.3
  },
  "luminance": 0.03405
}

Semantic roles & 50–950 ramp

primary
#2F2972
secondary
#9DA453
accent
#D751CC
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2972

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

Preview Lab → · Contrast checker → · Palette generator →

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