#2F2177#2F2177

#2F2177 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.139 H 282.9°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#2F2177
RGBrgb(47, 33, 119)
HSLhsl(250, 57%, 30%)
HSVhsv(250, 72%, 47%)
CMYKcmyk(60.5%, 72.3%, 0%, 53.3%)
CIE-LABlab(20.14, 32.14, -46.98)
CIE-LCHlch(20.14, 56.92, 304.37°)
OKLaboklab(32.54% 0.031 -0.1353)
OKLCHoklch(32.54% 0.139 282.9)
XYZxyz(5.0449, 3.0236, 17.7670)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2177 #697721
analogous
#213E77 #2F2177 #5A2177
triadic
#2F2177 #772F21 #21772F
tetradic
#2F2177 #77213E #697721 #21775A
square
#2F2177 #77213E #697721 #21775A
split-complementary
#2F2177 #775A21 #3E7721
monochromatic
#090718 #1C1447 #2F2177 #422EA7 #5C47CC

Accessibility & contrast

On white

13.09
#2F2177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2177
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2177#FFFFFF#000000##FFFFFF
##2F21771.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#053849
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f2177;
/* rgb */ color: rgb(47, 33, 119);
/* oklch */ color: oklch(32.5% 0.139 282.9);
Tailwind
colors: {
  custom: {
    50: '#705e9f',
    500: '#2f2177',
    950: '#000000',
  },
}
SCSS
$custom: #2f2177;
$custom-light: #705e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2177",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 249.767,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32541,
    "c": 0.13879,
    "h": 282.9
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#2F2177
secondary
#9AAA4A
accent
#E048C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2F2177

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

Preview Lab → · Contrast checker → · Palette generator →

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