#2F2DC7#2F2DC7

#2F2DC7 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.6% C 0.226 H 271.9°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#2F2DC7
RGBrgb(47, 45, 199)
HSLhsl(241, 63%, 48%)
HSVhsv(241, 77%, 78%)
CMYKcmyk(76.4%, 77.4%, 0%, 22%)
CIE-LABlab(30.89, 51.60, -78.10)
CIE-LCHlch(30.89, 93.61, 303.45°)
OKLaboklab(42.64% 0.0077 -0.2261)
OKLCHoklch(42.64% 0.226 271.9)
XYZxyz(12.4160, 6.6033, 54.6420)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2DC7 #C5C72D
analogous
#2D78C7 #2F2DC7 #7C2DC7
triadic
#2F2DC7 #C72F2D #2DC72F
tetradic
#2F2DC7 #C72D78 #C5C72D #2DC77C
square
#2F2DC7 #C72D78 #C5C72D #2DC77C
split-complementary
#2F2DC7 #C77C2D #78C72D
monochromatic
#171663 #232295 #2F2DC7 #5A58D9 #8B8AE5

Accessibility & contrast

On white

9.05
#2F2DC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F2DC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2DC7
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2DC7#FFFFFF#000000##FFFFFF
##2F2DC71.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050CB
Deuteranopia (green-blind)
#0041C4
Tritanopia (blue-blind)
#005C79
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f2dc7;
/* rgb */ color: rgb(47, 45, 199);
/* oklch */ color: oklch(42.6% 0.226 271.9);
Tailwind
colors: {
  custom: {
    50: '#8169d9',
    500: '#2f2dc7',
    950: '#000000',
  },
}
SCSS
$custom: #2f2dc7;
$custom-light: #8169d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2dc7",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 240.779,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.42644,
    "c": 0.22619,
    "h": 271.9
  },
  "luminance": 0.06605
}

Semantic roles & 50–950 ramp

primary
#2F2DC7
secondary
#CDCE81
accent
#E642E4
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2F2DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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