#2F2B72#2F2B72

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

Color values

HEX#2F2B72
RGBrgb(47, 43, 114)
HSLhsl(243, 45%, 31%)
HSVhsv(243, 62%, 45%)
CMYKcmyk(58.8%, 62.3%, 0%, 55.3%)
CIE-LABlab(22.11, 23.97, -40.56)
CIE-LCHlch(22.11, 47.11, 300.58°)
OKLaboklab(33.84% 0.0216 -0.1164)
OKLCHoklch(33.84% 0.118 280.5)
XYZxyz(5.0725, 3.5467, 16.3336)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B72 #6E722B
analogous
#2B4A72 #2F2B72 #522B72
triadic
#2F2B72 #722F2B #2B722F
tetradic
#2F2B72 #722B4A #6E722B #2B7252
square
#2F2B72 #722B4A #6E722B #2B7252
split-complementary
#2F2B72 #72522B #4A722B
monochromatic
#0A0919 #1D1A46 #2F2B72 #413C9E #5D58C0

Accessibility & contrast

On white

12.29
#2F2B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F2B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B72
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B72#FFFFFF#000000##FFFFFF
##2F2B721.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#0C3C4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2b72;
/* rgb */ color: rgb(47, 43, 114);
/* oklch */ color: oklch(33.8% 0.118 280.5);
Tailwind
colors: {
  custom: {
    50: '#6f649b',
    500: '#2f2b72',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b72;
$custom-light: #6f649b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b72",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 243.38,
    "s": 45.223,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33837,
    "c": 0.11837,
    "h": 280.5
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#2F2B72
secondary
#9FA455
accent
#D553CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2F2B72

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

Preview Lab → · Contrast checker → · Palette generator →

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