#2F2271#2F2271

#2F2271 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.129 H 283.9°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2F2271
RGBrgb(47, 34, 113)
HSLhsl(250, 54%, 29%)
HSVhsv(250, 70%, 44%)
CMYKcmyk(58.4%, 69.9%, 0%, 55.7%)
CIE-LABlab(19.80, 29.51, -43.67)
CIE-LCHlch(19.80, 52.71, 304.05°)
OKLaboklab(32.13% 0.0311 -0.1256)
OKLCHoklch(32.13% 0.129 283.9)
XYZxyz(4.7240, 2.9404, 15.9382)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2271 #647122
analogous
#223D71 #2F2271 #572271
triadic
#2F2271 #712F22 #22712F
tetradic
#2F2271 #71223D #647122 #227157
square
#2F2271 #71223D #647122 #227157
split-complementary
#2F2271 #715722 #3D7122
monochromatic
#0A0718 #1B1442 #2F2271 #4330A0 #5B46C7

Accessibility & contrast

On white

13.22
#2F2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2271
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2271#FFFFFF#000000##FFFFFF
##2F22711.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#0F3646
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f2271;
/* rgb */ color: rgb(47, 34, 113);
/* oklch */ color: oklch(32.1% 0.129 283.9);
Tailwind
colors: {
  custom: {
    50: '#6f5e9b',
    500: '#2f2271',
    950: '#000000',
  },
}
SCSS
$custom: #2f2271;
$custom-light: #6f5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2271",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 249.873,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32127,
    "c": 0.12936,
    "h": 283.9
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#2F2271
secondary
#96A44A
accent
#DD4BC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2271

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

Preview Lab → · Contrast checker → · Palette generator →

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