#2F2877#2F2877

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

Color values

HEX#2F2877
RGBrgb(47, 40, 119)
HSLhsl(245, 50%, 31%)
HSVhsv(245, 66%, 47%)
CMYKcmyk(60.5%, 66.4%, 0%, 53.3%)
CIE-LABlab(21.78, 27.71, -44.31)
CIE-LCHlch(21.78, 52.26, 302.02°)
OKLaboklab(33.72% 0.0244 -0.1274)
OKLCHoklch(33.72% 0.13 280.9)
XYZxyz(5.2598, 3.4535, 17.8386)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2877 #707728
analogous
#284877 #2F2877 #562877
triadic
#2F2877 #772F28 #28772F
tetradic
#2F2877 #772848 #707728 #287756
square
#2F2877 #772848 #707728 #287756
split-complementary
#2F2877 #775628 #487728
monochromatic
#0B091B #1D1949 #2F2877 #4137A5 #5E54C5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F2877#FFFFFF#000000##FFFFFF
##2F28771.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)
#00377A
Deuteranopia (green-blind)
#003175
Tritanopia (blue-blind)
#043C4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2877;
/* rgb */ color: rgb(47, 40, 119);
/* oklch */ color: oklch(33.7% 0.130 280.9);
Tailwind
colors: {
  custom: {
    50: '#70629f',
    500: '#2f2877',
    950: '#000000',
  },
}
SCSS
$custom: #2f2877;
$custom-light: #70629f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2877",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 245.316,
    "s": 49.686,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33723,
    "c": 0.12974,
    "h": 280.9
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#2F2877
secondary
#A1A952
accent
#D94FCD
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2877

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

Preview Lab → · Contrast checker → · Palette generator →

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