#2F2978#2F2978

#2F2978 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.130 H 280.4°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2F2978
RGBrgb(47, 41, 120)
HSLhsl(245, 49%, 32%)
HSVhsv(245, 66%, 47%)
CMYKcmyk(60.8%, 65.8%, 0%, 52.9%)
CIE-LABlab(22.11, 27.41, -44.40)
CIE-LCHlch(22.11, 52.18, 301.69°)
OKLaboklab(33.99% 0.0233 -0.1277)
OKLCHoklch(33.99% 0.13 280.4)
XYZxyz(5.3543, 3.5459, 18.1679)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2978 #727829
analogous
#294B78 #2F2978 #572978
triadic
#2F2978 #782F29 #29782F
tetradic
#2F2978 #78294B #727829 #297857
square
#2F2978 #78294B #727829 #297857
split-complementary
#2F2978 #785729 #4B7829
monochromatic
#0B0A1D #1D194A #2F2978 #4139A6 #5F56C5

Accessibility & contrast

On white

12.29
#2F2978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F2978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2978
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2978#FFFFFF#000000##FFFFFF
##2F29781.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#013D4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2978;
/* rgb */ color: rgb(47, 41, 120);
/* oklch */ color: oklch(34.0% 0.130 280.4);
Tailwind
colors: {
  custom: {
    50: '#7063a0',
    500: '#2f2978',
    950: '#000000',
  },
}
SCSS
$custom: #2f2978;
$custom-light: #7063a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2978",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 244.557,
    "s": 49.068,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33994,
    "c": 0.12981,
    "h": 280.4
  },
  "luminance": 0.03546
}

Semantic roles & 50–950 ramp

primary
#2F2978
secondary
#A3AA53
accent
#D94FCE
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2F2978

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

Preview Lab → · Contrast checker → · Palette generator →

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