#2F2791#2F2791

#2F2791 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.166 H 277.4°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2F2791
RGBrgb(47, 39, 145)
HSLhsl(245, 58%, 36%)
HSVhsv(245, 73%, 57%)
CMYKcmyk(67.6%, 73.1%, 0%, 43.1%)
CIE-LABlab(24.00, 37.25, -57.01)
CIE-LCHlch(24.00, 68.10, 303.16°)
OKLaboklab(36.08% 0.0214 -0.1646)
OKLCHoklch(36.08% 0.166 277.4)
XYZxyz(7.0070, 4.0991, 27.2045)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2791 #899127
analogous
#275491 #2F2791 #642791
triadic
#2F2791 #912F27 #27912F
tetradic
#2F2791 #912754 #899127 #279164
square
#2F2791 #912754 #899127 #279164
split-complementary
#2F2791 #916427 #549127
monochromatic
#100D31 #1F1A61 #2F2791 #3F34C1 #675FD4

Accessibility & contrast

On white

11.54
#2F2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2791
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2791#FFFFFF#000000##FFFFFF
##2F27911.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2791;
/* rgb */ color: rgb(47, 39, 145);
/* oklch */ color: oklch(36.1% 0.166 277.4);
Tailwind
colors: {
  custom: {
    50: '#7562b2',
    500: '#2f2791',
    950: '#000000',
  },
}
SCSS
$custom: #2f2791;
$custom-light: #7562b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2791",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 244.528,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36075,
    "c": 0.16602,
    "h": 277.4
  },
  "luminance": 0.041
}

Semantic roles & 50–950 ramp

primary
#2F2791
secondary
#B2B95B
accent
#E147D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2791

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

Preview Lab → · Contrast checker → · Palette generator →

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