#2F2799#2F2799

#2F2799 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.176 H 276.5°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2F2799
RGBrgb(47, 39, 153)
HSLhsl(244, 59%, 38%)
HSVhsv(244, 75%, 60%)
CMYKcmyk(69.3%, 74.5%, 0%, 40%)
CIE-LABlab(24.81, 39.93, -60.60)
CIE-LCHlch(24.81, 72.57, 303.38°)
OKLaboklab(36.9% 0.0199 -0.1751)
OKLCHoklch(36.9% 0.176 276.5)
XYZxyz(7.6457, 4.3546, 30.5684)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2799 #919927
analogous
#275899 #2F2799 #682799
triadic
#2F2799 #992F27 #27992F
tetradic
#2F2799 #992758 #919927 #279968
square
#2F2799 #992758 #919927 #279968
split-complementary
#2F2799 #996827 #589927
monochromatic
#110E37 #201B68 #2F2799 #3E33CA #6B63D7

Accessibility & contrast

On white

11.22
#2F2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2799
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2799#FFFFFF#000000##FFFFFF
##2F27991.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2799;
/* rgb */ color: rgb(47, 39, 153);
/* oklch */ color: oklch(36.9% 0.176 276.5);
Tailwind
colors: {
  custom: {
    50: '#7763b8',
    500: '#2f2799',
    950: '#000000',
  },
}
SCSS
$custom: #2f2799;
$custom-light: #7763b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2799",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 244.211,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.369,
    "c": 0.17622,
    "h": 276.5
  },
  "luminance": 0.04355
}

Semantic roles & 50–950 ramp

primary
#2F2799
secondary
#B6BD5F
accent
#E345D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2799

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

Preview Lab → · Contrast checker → · Palette generator →

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