#2F2176#2F2176

#2F2176 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.137 H 283.1°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2F2176
RGBrgb(47, 33, 118)
HSLhsl(250, 56%, 30%)
HSVhsv(250, 72%, 46%)
CMYKcmyk(60.2%, 72%, 0%, 53.7%)
CIE-LABlab(20.04, 31.81, -46.50)
CIE-LCHlch(20.04, 56.34, 304.37°)
OKLaboklab(32.44% 0.0312 -0.1338)
OKLCHoklch(32.44% 0.137 283.1)
XYZxyz(4.9852, 2.9997, 17.4523)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2176 #687621
analogous
#213E76 #2F2176 #592176
triadic
#2F2176 #762F21 #21762F
tetradic
#2F2176 #76213E #687621 #217659
square
#2F2176 #76213E #687621 #217659
split-complementary
#2F2176 #765921 #3E7621
monochromatic
#0A0718 #1C1446 #2F2176 #422EA6 #5C46CB

Accessibility & contrast

On white

13.13
#2F2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2176
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2176#FFFFFF#000000##FFFFFF
##2F21761.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#073748
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f2176;
/* rgb */ color: rgb(47, 33, 118);
/* oklch */ color: oklch(32.4% 0.137 283.1);
Tailwind
colors: {
  custom: {
    50: '#705d9e',
    500: '#2f2176',
    950: '#000000',
  },
}
SCSS
$custom: #2f2176;
$custom-light: #705d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2176",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 249.882,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32443,
    "c": 0.13744,
    "h": 283.1
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#2F2176
secondary
#99A94A
accent
#E048C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2176

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

Preview Lab → · Contrast checker → · Palette generator →

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