#2F2179#2F2179

#2F2179 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.141 H 282.5°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2F2179
RGBrgb(47, 33, 121)
HSLhsl(250, 57%, 30%)
HSVhsv(250, 73%, 47%)
CMYKcmyk(61.2%, 72.7%, 0%, 52.5%)
CIE-LABlab(20.33, 32.80, -47.95)
CIE-LCHlch(20.33, 58.09, 304.38°)
OKLaboklab(32.74% 0.0307 -0.1381)
OKLCHoklch(32.74% 0.141 282.5)
XYZxyz(5.1663, 3.0722, 18.4062)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2179 #6B7921
analogous
#213F79 #2F2179 #5B2179
triadic
#2F2179 #792F21 #21792F
tetradic
#2F2179 #79213F #6B7921 #21795B
square
#2F2179 #79213F #6B7921 #21795B
split-complementary
#2F2179 #795B21 #3F7921
monochromatic
#0A0719 #1C1449 #2F2179 #422EA9 #5D47CD

Accessibility & contrast

On white

13.01
#2F2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2179
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2179#FFFFFF#000000##FFFFFF
##2F21791.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#01384A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f2179;
/* rgb */ color: rgb(47, 33, 121);
/* oklch */ color: oklch(32.7% 0.141 282.5);
Tailwind
colors: {
  custom: {
    50: '#715ea1',
    500: '#2f2179',
    950: '#000000',
  },
}
SCSS
$custom: #2f2179;
$custom-light: #715ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2179",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 249.545,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32737,
    "c": 0.14146,
    "h": 282.5
  },
  "luminance": 0.03073
}

Semantic roles & 50–950 ramp

primary
#2F2179
secondary
#9CAC4A
accent
#E047C8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F2179

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

Preview Lab → · Contrast checker → · Palette generator →

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