#2F2971#2F2971

#2F2971 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.4% C 0.120 H 281.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#2F2971
RGBrgb(47, 41, 113)
HSLhsl(245, 47%, 30%)
HSVhsv(245, 64%, 44%)
CMYKcmyk(58.4%, 63.7%, 0%, 55.7%)
CIE-LABlab(21.51, 24.96, -40.89)
CIE-LCHlch(21.51, 47.90, 301.40°)
OKLaboklab(33.37% 0.0238 -0.1174)
OKLCHoklch(33.37% 0.12 281.5)
XYZxyz(4.9449, 3.3822, 16.0118)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2971 #6B7129
analogous
#294771 #2F2971 #532971
triadic
#2F2971 #712F29 #29712F
tetradic
#2F2971 #712947 #6B7129 #297153
square
#2F2971 #712947 #6B7129 #297153
split-complementary
#2F2971 #715329 #477129
monochromatic
#0A0817 #1C1944 #2F2971 #42399E #5D54C1

Accessibility & contrast

On white

12.53
#2F2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2971
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2971#FFFFFF#000000##FFFFFF
##2F29711.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#0E3A48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2971;
/* rgb */ color: rgb(47, 41, 113);
/* oklch */ color: oklch(33.4% 0.120 281.5);
Tailwind
colors: {
  custom: {
    50: '#6f639a',
    500: '#2f2971',
    950: '#000000',
  },
}
SCSS
$custom: #2f2971;
$custom-light: #6f639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2971",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 245,
    "s": 46.753,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33371,
    "c": 0.11975,
    "h": 281.5
  },
  "luminance": 0.03382
}

Semantic roles & 50–950 ramp

primary
#2F2971
secondary
#9CA353
accent
#D651CB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2971

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

Preview Lab → · Contrast checker → · Palette generator →

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