#2F47FE#2F47FE

#2F47FE is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 52.0% C 0.266 H 268.1°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#2F47FE
RGBrgb(47, 71, 254)
HSLhsl(233, 99%, 59%)
HSVhsv(233, 81%, 100%)
CMYKcmyk(81.5%, 72%, 0%, 0.4%)
CIE-LABlab(41.63, 55.33, -91.74)
CIE-LCHlch(41.63, 107.13, 301.09°)
OKLaboklab(51.97% -0.0091 -0.2659)
OKLCHoklch(51.97% 0.266 268.1)
XYZxyz(21.3087, 12.2640, 94.9908)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47FE #FEE62F
analogous
#2FAFFE #2F47FE #7E2FFE
triadic
#2F47FE #FE2F47 #47FE2F
tetradic
#2F47FE #FE2FAF #FEE62F #2FFE7E
square
#2F47FE #FE2FAF #FEE62F #2FFE7E
split-complementary
#2F47FE #FE7E2F #AFFE2F
monochromatic
#0115B2 #011DEF #2F47FE #6C7DFE #A9B3FF

Accessibility & contrast

On white

6.08
#2F47FE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2F47FE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F47FE
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47FE#FFFFFF#000000##FFFFFF
##2F47FE1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CFF
Deuteranopia (green-blind)
#0058FB
Tritanopia (blue-blind)
#007C9F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f47fe;
/* rgb */ color: rgb(47, 71, 254);
/* oklch */ color: oklch(52.0% 0.266 268.1);
Tailwind
colors: {
  custom: {
    50: '#8c7bff',
    500: '#2f47fe',
    950: '#000000',
  },
}
SCSS
$custom: #2f47fe;
$custom-light: #8c7bff;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47fe",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 254
  },
  "hsl": {
    "h": 233.043,
    "s": 99.043,
    "l": 59.02
  },
  "oklch": {
    "l": 0.51965,
    "c": 0.26604,
    "h": 268.1
  },
  "luminance": 0.12267
}

Semantic roles & 50–950 ramp

primary
#2F47FE
secondary
#EDE49C
accent
#E629FF
background
#F9F7FF
surface
#F2EEFF
border
#CCC9D7
text
#0F0918
muted
#7E7B86

Preview Lab

Preview with #2F47FE

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

Preview Lab → · Contrast checker → · Palette generator →

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