#2F2371#2F2371

#2F2371 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.128 H 283.6°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2F2371
RGBrgb(47, 35, 113)
HSLhsl(249, 53%, 29%)
HSVhsv(249, 69%, 44%)
CMYKcmyk(58.4%, 69%, 0%, 55.7%)
CIE-LABlab(20.04, 28.88, -43.29)
CIE-LCHlch(20.04, 52.04, 303.70°)
OKLaboklab(32.3% 0.0301 -0.1244)
OKLCHoklch(32.3% 0.128 283.6)
XYZxyz(4.7530, 2.9984, 15.9479)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2371 #657123
analogous
#233E71 #2F2371 #562371
triadic
#2F2371 #712F23 #23712F
tetradic
#2F2371 #71233E #657123 #237156
square
#2F2371 #71233E #657123 #237156
split-complementary
#2F2371 #715623 #3E7123
monochromatic
#0A0717 #1C1542 #2F2371 #4231A0 #5B48C6

Accessibility & contrast

On white

13.13
#2F2371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F2371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2371
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2371#FFFFFF#000000##FFFFFF
##2F23711.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#0F3746
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f2371;
/* rgb */ color: rgb(47, 35, 113);
/* oklch */ color: oklch(32.3% 0.128 283.6);
Tailwind
colors: {
  custom: {
    50: '#6f5f9b',
    500: '#2f2371',
    950: '#000000',
  },
}
SCSS
$custom: #2f2371;
$custom-light: #6f5f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2371",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 249.231,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32296,
    "c": 0.12804,
    "h": 283.6
  },
  "luminance": 0.02999
}

Semantic roles & 50–950 ramp

primary
#2F2371
secondary
#97A44C
accent
#DC4CC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2371

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

Preview Lab → · Contrast checker → · Palette generator →

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