#2F2FE2#2F2FE2

#2F2FE2 is a mid, highly saturated blue. Relative luminance 0.081; OKLCH L 45.9% C 0.255 H 270.4°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#2F2FE2
RGBrgb(47, 47, 226)
HSLhsl(240, 76%, 54%)
HSVhsv(240, 79%, 89%)
CMYKcmyk(79.2%, 79.2%, 0%, 11.4%)
CIE-LABlab(34.24, 58.99, -88.15)
CIE-LCHlch(34.24, 106.07, 303.79°)
OKLaboklab(45.87% 0.0017 -0.2552)
OKLCHoklch(45.87% 0.255 270.4)
XYZxyz(15.9116, 8.1265, 72.6667)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FE2 #E2E22F
analogous
#2F88E2 #2F2FE2 #882FE2
triadic
#2F2FE2 #E22F2F #2FE22F
tetradic
#2F2FE2 #E22F88 #E2E22F #2FE288
square
#2F2FE2 #E22F88 #E2E22F #2FE288
split-complementary
#2F2FE2 #E2882F #88E22F
monochromatic
#121284 #1A1ABA #2F2FE2 #6565E9 #9A9AF1

Accessibility & contrast

On white

8.00
#2F2FE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F2FE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FE2
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FE2#FFFFFF#000000##FFFFFF
##2F2FE21.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E7
Deuteranopia (green-blind)
#0047DF
Tritanopia (blue-blind)
#006789
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f2fe2;
/* rgb */ color: rgb(47, 47, 226);
/* oklch */ color: oklch(45.9% 0.255 270.4);
Tailwind
colors: {
  custom: {
    50: '#886ced',
    500: '#2f2fe2',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fe2;
$custom-light: #886ced;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fe2",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 240,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.45871,
    "c": 0.25524,
    "h": 270.4
  },
  "luminance": 0.08128
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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