#2F2974#2F2974

#2F2974 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.124 H 281.0°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2F2974
RGBrgb(47, 41, 116)
HSLhsl(245, 48%, 31%)
HSVhsv(245, 65%, 45%)
CMYKcmyk(59.5%, 64.7%, 0%, 54.5%)
CIE-LABlab(21.77, 26.01, -42.40)
CIE-LCHlch(21.77, 49.74, 301.52°)
OKLaboklab(33.64% 0.0237 -0.1218)
OKLCHoklch(33.64% 0.124 281)
XYZxyz(5.1166, 3.4508, 16.9161)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2974 #6E7429
analogous
#294874 #2F2974 #542974
triadic
#2F2974 #742F29 #29742F
tetradic
#2F2974 #742948 #6E7429 #297454
square
#2F2974 #742948 #6E7429 #297454
split-complementary
#2F2974 #745429 #487429
monochromatic
#0A091A #1D1947 #2F2974 #4139A1 #5D55C3

Accessibility & contrast

On white

12.42
#2F2974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2974
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2974#FFFFFF#000000##FFFFFF
##2F29741.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#003172
Tritanopia (blue-blind)
#093B4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2974;
/* rgb */ color: rgb(47, 41, 116);
/* oklch */ color: oklch(33.6% 0.124 281.0);
Tailwind
colors: {
  custom: {
    50: '#6f639d',
    500: '#2f2974',
    950: '#000000',
  },
}
SCSS
$custom: #2f2974;
$custom-light: #6f639d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2974",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 116
  },
  "hsl": {
    "h": 244.8,
    "s": 47.771,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33635,
    "c": 0.12409,
    "h": 281
  },
  "luminance": 0.03451
}

Semantic roles & 50–950 ramp

primary
#2F2974
secondary
#9FA653
accent
#D750CD
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2974

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

Preview Lab → · Contrast checker → · Palette generator →

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