#2F2571#2F2571

#2F2571 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.125 H 282.9°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2F2571
RGBrgb(47, 37, 113)
HSLhsl(248, 51%, 29%)
HSVhsv(248, 67%, 44%)
CMYKcmyk(58.4%, 67.3%, 0%, 55.7%)
CIE-LABlab(20.52, 27.59, -42.51)
CIE-LCHlch(20.52, 50.68, 302.99°)
OKLaboklab(32.64% 0.0281 -0.1221)
OKLCHoklch(32.64% 0.125 282.9)
XYZxyz(4.8136, 3.1194, 15.9680)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2571 #677125
analogous
#254171 #2F2571 #552571
triadic
#2F2571 #712F25 #25712F
tetradic
#2F2571 #712541 #677125 #257155
square
#2F2571 #712541 #677125 #257155
split-complementary
#2F2571 #715525 #417125
monochromatic
#0A0817 #1C1643 #2F2571 #42349F #5C4CC4

Accessibility & contrast

On white

12.93
#2F2571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F2571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2571
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2571#FFFFFF#000000##FFFFFF
##2F25711.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#0F3847
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f2571;
/* rgb */ color: rgb(47, 37, 113);
/* oklch */ color: oklch(32.6% 0.125 282.9);
Tailwind
colors: {
  custom: {
    50: '#6f609a',
    500: '#2f2571',
    950: '#000000',
  },
}
SCSS
$custom: #2f2571;
$custom-light: #6f609a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2571",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 247.895,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32643,
    "c": 0.12533,
    "h": 282.9
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#2F2571
secondary
#98A44E
accent
#DA4EC8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2571

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

Preview Lab → · Contrast checker → · Palette generator →

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