#2F2EB7#2F2EB7

#2F2EB7 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.1% C 0.206 H 272.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#2F2EB7
RGBrgb(47, 46, 183)
HSLhsl(240, 60%, 45%)
HSVhsv(240, 75%, 72%)
CMYKcmyk(74.3%, 74.9%, 0%, 28.2%)
CIE-LABlab(29.35, 45.90, -71.20)
CIE-LCHlch(29.35, 84.71, 302.81°)
OKLaboklab(41.06% 0.0104 -0.206)
OKLCHoklch(41.06% 0.206 272.9)
XYZxyz(10.6937, 5.9761, 45.3805)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EB7 #B6B72E
analogous
#2E72B7 #2F2EB7 #742EB7
triadic
#2F2EB7 #B72F2E #2EB72F
tetradic
#2F2EB7 #B72E72 #B6B72E #2EB774
square
#2F2EB7 #B72E72 #B6B72E #2EB774
split-complementary
#2F2EB7 #B7742E #72B72E
monochromatic
#161555 #222286 #2F2EB7 #504FD3 #8180DF

Accessibility & contrast

On white

9.57
#2F2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EB7
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EB7#FFFFFF#000000##FFFFFF
##2F2EB71.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#003EB5
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f2eb7;
/* rgb */ color: rgb(47, 46, 183);
/* oklch */ color: oklch(41.1% 0.206 272.9);
Tailwind
colors: {
  custom: {
    50: '#7e69ce',
    500: '#2f2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #2f2eb7;
$custom-light: #7e69ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2eb7",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 240.438,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41055,
    "c": 0.2063,
    "h": 272.9
  },
  "luminance": 0.05977
}

Semantic roles & 50–950 ramp

primary
#2F2EB7
secondary
#C7C879
accent
#E345E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2F2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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