#2F2973#2F2973

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

Color values

HEX#2F2973
RGBrgb(47, 41, 115)
HSLhsl(245, 47%, 31%)
HSVhsv(245, 64%, 45%)
CMYKcmyk(59.1%, 64.3%, 0%, 54.9%)
CIE-LABlab(21.68, 25.66, -41.90)
CIE-LCHlch(21.68, 49.13, 301.48°)
OKLaboklab(33.55% 0.0237 -0.1203)
OKLCHoklch(33.55% 0.123 281.1)
XYZxyz(5.0588, 3.4277, 16.6114)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2973 #6D7329
analogous
#294873 #2F2973 #542973
triadic
#2F2973 #732F29 #29732F
tetradic
#2F2973 #732948 #6D7329 #297354
square
#2F2973 #732948 #6D7329 #297354
split-complementary
#2F2973 #735429 #487329
monochromatic
#0A0919 #1D1946 #2F2973 #4139A0 #5D54C2

Accessibility & contrast

On white

12.46
#2F2973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F2973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2973
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2973#FFFFFF#000000##FFFFFF
##2F29731.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#003172
Tritanopia (blue-blind)
#0B3B4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2973;
/* rgb */ color: rgb(47, 41, 115);
/* oklch */ color: oklch(33.5% 0.123 281.1);
Tailwind
colors: {
  custom: {
    50: '#6f639c',
    500: '#2f2973',
    950: '#000000',
  },
}
SCSS
$custom: #2f2973;
$custom-light: #6f639c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2973",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 115
  },
  "hsl": {
    "h": 244.865,
    "s": 47.436,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33547,
    "c": 0.12265,
    "h": 281.1
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2973

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

Preview Lab → · Contrast checker → · Palette generator →

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