#2F2671#2F2671

#2F2671 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.124 H 282.6°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2F2671
RGBrgb(47, 38, 113)
HSLhsl(247, 50%, 30%)
HSVhsv(247, 66%, 44%)
CMYKcmyk(58.4%, 66.4%, 0%, 55.7%)
CIE-LABlab(20.76, 26.94, -42.11)
CIE-LCHlch(20.76, 49.99, 302.61°)
OKLaboklab(32.82% 0.027 -0.121)
OKLCHoklch(32.82% 0.124 282.6)
XYZxyz(4.8451, 3.1825, 15.9786)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2671 #687126
analogous
#264371 #2F2671 #552671
triadic
#2F2671 #712F26 #26712F
tetradic
#2F2671 #712643 #687126 #267155
square
#2F2671 #712643 #687126 #267155
split-complementary
#2F2671 #715526 #437126
monochromatic
#0A0817 #1C1743 #2F2671 #42359F #5C4EC3

Accessibility & contrast

On white

12.83
#2F2671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F2671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2671
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2671#FFFFFF#000000##FFFFFF
##2F26711.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2671;
/* rgb */ color: rgb(47, 38, 113);
/* oklch */ color: oklch(32.8% 0.124 282.6);
Tailwind
colors: {
  custom: {
    50: '#6f619a',
    500: '#2f2671',
    950: '#000000',
  },
}
SCSS
$custom: #2f2671;
$custom-light: #6f619a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2671",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 113
  },
  "hsl": {
    "h": 247.2,
    "s": 49.669,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32821,
    "c": 0.12396,
    "h": 282.6
  },
  "luminance": 0.03183
}

Semantic roles & 50–950 ramp

primary
#2F2671
secondary
#99A44F
accent
#D94FC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2671

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

Preview Lab → · Contrast checker → · Palette generator →

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