#2F2379#2F2379

#2F2379 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.139 H 282.0°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2F2379
RGBrgb(47, 35, 121)
HSLhsl(248, 55%, 31%)
HSVhsv(248, 71%, 47%)
CMYKcmyk(61.2%, 71.1%, 0%, 52.5%)
CIE-LABlab(20.78, 31.58, -47.22)
CIE-LCHlch(20.78, 56.80, 303.78°)
OKLaboklab(33.06% 0.0289 -0.136)
OKLCHoklch(33.06% 0.139 282)
XYZxyz(5.2234, 3.1865, 18.4253)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2379 #6D7923
analogous
#234279 #2F2379 #5A2379
triadic
#2F2379 #792F23 #23792F
tetradic
#2F2379 #792342 #6D7923 #23795A
square
#2F2379 #792342 #6D7923 #23795A
split-complementary
#2F2379 #795A23 #427923
monochromatic
#0A081A #1D154A #2F2379 #4131A8 #5D4BCB

Accessibility & contrast

On white

12.83
#2F2379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F2379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2379
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2379#FFFFFF#000000##FFFFFF
##2F23791.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#013A4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f2379;
/* rgb */ color: rgb(47, 35, 121);
/* oklch */ color: oklch(33.1% 0.139 282.0);
Tailwind
colors: {
  custom: {
    50: '#715fa1',
    500: '#2f2379',
    950: '#000000',
  },
}
SCSS
$custom: #2f2379;
$custom-light: #715fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2379",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 121
  },
  "hsl": {
    "h": 248.372,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33056,
    "c": 0.139,
    "h": 282
  },
  "luminance": 0.03187
}

Semantic roles & 50–950 ramp

primary
#2F2379
secondary
#9EAC4C
accent
#DE49CA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F2379

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

Preview Lab → · Contrast checker → · Palette generator →

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