#2F31E2#2F31E2

#2F31E2 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 46.1% C 0.254 H 270.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#2F31E2
RGBrgb(47, 49, 226)
HSLhsl(239, 76%, 54%)
HSVhsv(239, 79%, 89%)
CMYKcmyk(79.2%, 78.3%, 0%, 11.4%)
CIE-LABlab(34.58, 58.02, -87.59)
CIE-LCHlch(34.58, 105.07, 303.52°)
OKLaboklab(46.11% 0.0012 -0.2536)
OKLCHoklch(46.11% 0.254 270.3)
XYZxyz(15.9934, 8.2901, 72.6940)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31E2 #E2E02F
analogous
#2F8AE2 #2F31E2 #872FE2
triadic
#2F31E2 #E22F31 #31E22F
tetradic
#2F31E2 #E22F8A #E2E02F #2FE287
square
#2F31E2 #E22F8A #E2E02F #2FE287
split-complementary
#2F31E2 #E2872F #8AE22F
monochromatic
#121484 #1A1CBA #2F31E2 #6566E9 #9A9BF1

Accessibility & contrast

On white

7.90
#2F31E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2F31E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31E2
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31E2#FFFFFF#000000##FFFFFF
##2F31E21.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AE7
Deuteranopia (green-blind)
#0048DF
Tritanopia (blue-blind)
#00688A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f31e2;
/* rgb */ color: rgb(47, 49, 226);
/* oklch */ color: oklch(46.1% 0.254 270.3);
Tailwind
colors: {
  custom: {
    50: '#876ded',
    500: '#2f31e2',
    950: '#000000',
  },
}
SCSS
$custom: #2f31e2;
$custom-light: #876ded;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31e2",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 239.33,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.46105,
    "c": 0.25365,
    "h": 270.3
  },
  "luminance": 0.08292
}

Semantic roles & 50–950 ramp

primary
#2F31E2
secondary
#DDDC90
accent
#F036F2
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #2F31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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