#2F2276#2F2276

#2F2276 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.136 H 282.9°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#2F2276
RGBrgb(47, 34, 118)
HSLhsl(249, 55%, 30%)
HSVhsv(249, 71%, 46%)
CMYKcmyk(60.2%, 71.2%, 0%, 53.7%)
CIE-LABlab(20.27, 31.19, -46.13)
CIE-LCHlch(20.27, 55.69, 304.06°)
OKLaboklab(32.6% 0.0303 -0.1328)
OKLCHoklch(32.6% 0.136 282.9)
XYZxyz(5.0133, 3.0561, 17.4617)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2276 #697622
analogous
#223F76 #2F2276 #592276
triadic
#2F2276 #762F22 #22762F
tetradic
#2F2276 #76223F #697622 #227659
square
#2F2276 #76223F #697622 #227659
split-complementary
#2F2276 #765922 #3F7622
monochromatic
#090718 #1C1446 #2F2276 #4230A6 #5C48CA

Accessibility & contrast

On white

13.03
#2F2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2276
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2276#FFFFFF#000000##FFFFFF
##2F22761.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#073849
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f2276;
/* rgb */ color: rgb(47, 34, 118);
/* oklch */ color: oklch(32.6% 0.136 282.9);
Tailwind
colors: {
  custom: {
    50: '#705e9e',
    500: '#2f2276',
    950: '#000000',
  },
}
SCSS
$custom: #2f2276;
$custom-light: #705e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2276",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 249.286,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32604,
    "c": 0.1362,
    "h": 282.9
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#2F2276
secondary
#9AA94B
accent
#DF49C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2276

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

Preview Lab → · Contrast checker → · Palette generator →

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