#2F2FE3#2F2FE3

#2F2FE3 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 46.0% C 0.256 H 270.3°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#2F2FE3
RGBrgb(47, 47, 227)
HSLhsl(240, 76%, 54%)
HSVhsv(240, 79%, 89%)
CMYKcmyk(79.3%, 79.3%, 0%, 11%)
CIE-LABlab(34.36, 59.30, -88.53)
CIE-LCHlch(34.36, 106.56, 303.81°)
OKLaboklab(45.98% 0.0015 -0.2563)
OKLCHoklch(45.98% 0.256 270.3)
XYZxyz(16.0492, 8.1816, 73.3915)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FE3 #E3E32F
analogous
#2F89E3 #2F2FE3 #892FE3
triadic
#2F2FE3 #E32F2F #2FE32F
tetradic
#2F2FE3 #E32F89 #E3E32F #2FE389
square
#2F2FE3 #E32F89 #E3E32F #2FE389
split-complementary
#2F2FE3 #E3892F #89E32F
monochromatic
#121286 #1919BC #2F2FE3 #6565EA #9B9BF2

Accessibility & contrast

On white

7.96
#2F2FE3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2F2FE3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FE3
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FE3#FFFFFF#000000##FFFFFF
##2F2FE31.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AE8
Deuteranopia (green-blind)
#0047E0
Tritanopia (blue-blind)
#00688A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f2fe3;
/* rgb */ color: rgb(47, 47, 227);
/* oklch */ color: oklch(46.0% 0.256 270.3);
Tailwind
colors: {
  custom: {
    50: '#886ced',
    500: '#2f2fe3',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fe3;
$custom-light: #886ced;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fe3",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 227
  },
  "hsl": {
    "h": 240,
    "s": 76.271,
    "l": 53.725
  },
  "oklch": {
    "l": 0.45982,
    "c": 0.25634,
    "h": 270.3
  },
  "luminance": 0.08183
}

Semantic roles & 50–950 ramp

primary
#2F2FE3
secondary
#DDDD90
accent
#F335F3
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #2F2FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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