#2F2591#2F2591

#2F2591 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.168 H 277.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#2F2591
RGBrgb(47, 37, 145)
HSLhsl(246, 59%, 36%)
HSVhsv(246, 74%, 57%)
CMYKcmyk(67.6%, 74.5%, 0%, 43.1%)
CIE-LABlab(23.58, 38.43, -57.70)
CIE-LCHlch(23.58, 69.32, 303.66°)
OKLaboklab(35.78% 0.0228 -0.1666)
OKLCHoklch(35.78% 0.168 277.8)
XYZxyz(6.9430, 3.9712, 27.1832)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2591 #879125
analogous
#255191 #2F2591 #652591
triadic
#2F2591 #912F25 #25912F
tetradic
#2F2591 #912551 #879125 #259165
square
#2F2591 #912551 #879125 #259165
split-complementary
#2F2591 #916525 #519125
monochromatic
#0F0C2F #1F1960 #2F2591 #3F31C2 #665BD5

Accessibility & contrast

On white

11.70
#2F2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F2591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2591
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2591#FFFFFF#000000##FFFFFF
##2F25911.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2591;
/* rgb */ color: rgb(47, 37, 145);
/* oklch */ color: oklch(35.8% 0.168 277.8);
Tailwind
colors: {
  custom: {
    50: '#7661b2',
    500: '#2f2591',
    950: '#000000',
  },
}
SCSS
$custom: #2f2591;
$custom-light: #7661b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2591",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 245.556,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35776,
    "c": 0.16819,
    "h": 277.8
  },
  "luminance": 0.03972
}

Semantic roles & 50–950 ramp

primary
#2F2591
secondary
#B1BA58
accent
#E345D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2591

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

Preview Lab → · Contrast checker → · Palette generator →

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