#2F2B71#2F2B71

#2F2B71 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.8% C 0.117 H 280.7°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2F2B71
RGBrgb(47, 43, 113)
HSLhsl(243, 45%, 31%)
HSVhsv(243, 62%, 44%)
CMYKcmyk(58.4%, 61.9%, 0%, 55.7%)
CIE-LABlab(22.03, 23.62, -40.05)
CIE-LCHlch(22.03, 46.49, 300.53°)
OKLaboklab(33.75% 0.0216 -0.1149)
OKLCHoklch(33.75% 0.117 280.7)
XYZxyz(5.0159, 3.5240, 16.0355)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B71 #6D712B
analogous
#2B4A71 #2F2B71 #522B71
triadic
#2F2B71 #712F2B #2B712F
tetradic
#2F2B71 #712B4A #6D712B #2B7152
square
#2F2B71 #712B4A #6D712B #2B7152
split-complementary
#2F2B71 #71522B #4A712B
monochromatic
#0A0918 #1D1A45 #2F2B71 #413C9D #5D57BF

Accessibility & contrast

On white

12.32
#2F2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B71
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B71#FFFFFF#000000##FFFFFF
##2F2B711.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#0E3C49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2b71;
/* rgb */ color: rgb(47, 43, 113);
/* oklch */ color: oklch(33.8% 0.117 280.7);
Tailwind
colors: {
  custom: {
    50: '#6e649a',
    500: '#2f2b71',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b71;
$custom-light: #6e649a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b71",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 243.429,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33752,
    "c": 0.1169,
    "h": 280.7
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#2F2B71
secondary
#9EA355
accent
#D553CD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2F2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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