#2F2991#2F2991

#2F2991 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.164 H 277.0°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2F2991
RGBrgb(47, 41, 145)
HSLhsl(243, 56%, 36%)
HSVhsv(243, 72%, 57%)
CMYKcmyk(67.6%, 71.7%, 0%, 43.1%)
CIE-LABlab(24.43, 36.06, -56.29)
CIE-LCHlch(24.43, 66.85, 302.64°)
OKLaboklab(36.39% 0.02 -0.1625)
OKLCHoklch(36.39% 0.164 277)
XYZxyz(7.0744, 4.2339, 27.2270)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2991 #8B9129
analogous
#295791 #2F2991 #632991
triadic
#2F2991 #912F29 #29912F
tetradic
#2F2991 #912957 #8B9129 #299163
square
#2F2991 #912957 #8B9129 #299163
split-complementary
#2F2991 #916329 #579129
monochromatic
#100E32 #201C61 #2F2991 #3E36C1 #6862D3

Accessibility & contrast

On white

11.37
#2F2991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F2991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2991
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2991#FFFFFF#000000##FFFFFF
##2F29911.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00368F
Tritanopia (blue-blind)
#00455A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2991;
/* rgb */ color: rgb(47, 41, 145);
/* oklch */ color: oklch(36.4% 0.164 277.0);
Tailwind
colors: {
  custom: {
    50: '#7564b2',
    500: '#2f2991',
    950: '#000000',
  },
}
SCSS
$custom: #2f2991;
$custom-light: #7564b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2991",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 243.462,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36385,
    "c": 0.16378,
    "h": 277
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#2F2991
secondary
#B3B85D
accent
#DF49D7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2F2991

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

Preview Lab → · Contrast checker → · Palette generator →

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