#2F2279#2F2279

#2F2279 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.140 H 282.3°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#2F2279
RGBrgb(47, 34, 121)
HSLhsl(249, 56%, 30%)
HSVhsv(249, 72%, 47%)
CMYKcmyk(61.2%, 71.9%, 0%, 52.5%)
CIE-LABlab(20.55, 32.20, -47.58)
CIE-LCHlch(20.55, 57.45, 304.08°)
OKLaboklab(32.9% 0.0298 -0.137)
OKLCHoklch(32.9% 0.14 282.3)
XYZxyz(5.1944, 3.1285, 18.4156)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2279 #6C7922
analogous
#224079 #2F2279 #5B2279
triadic
#2F2279 #792F22 #22792F
tetradic
#2F2279 #792240 #6C7922 #22795B
square
#2F2279 #792240 #6C7922 #22795B
split-complementary
#2F2279 #795B22 #407922
monochromatic
#0A0719 #1C1549 #2F2279 #422FA9 #5D49CC

Accessibility & contrast

On white

12.92
#2F2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2279
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2279#FFFFFF#000000##FFFFFF
##2F22791.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2279;
/* rgb */ color: rgb(47, 34, 121);
/* oklch */ color: oklch(32.9% 0.140 282.3);
Tailwind
colors: {
  custom: {
    50: '#715ea1',
    500: '#2f2279',
    950: '#000000',
  },
}
SCSS
$custom: #2f2279;
$custom-light: #715ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2279",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 248.966,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32895,
    "c": 0.14024,
    "h": 282.3
  },
  "luminance": 0.03129
}

Semantic roles & 50–950 ramp

primary
#2F2279
secondary
#9DAC4B
accent
#DF48C9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F2279

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

Preview Lab → · Contrast checker → · Palette generator →

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