#2F42E8#2F42E8

#2F42E8 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.0% C 0.245 H 268.9°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2F42E8
RGBrgb(47, 66, 232)
HSLhsl(234, 80%, 55%)
HSVhsv(234, 80%, 91%)
CMYKcmyk(79.7%, 71.6%, 0%, 9%)
CIE-LABlab(38.42, 50.86, -84.66)
CIE-LCHlch(38.42, 98.76, 301.00°)
OKLaboklab(49.01% -0.0049 -0.2453)
OKLCHoklch(49.01% 0.245 268.9)
XYZxyz(17.6810, 10.3249, 77.3893)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42E8 #E8D52F
analogous
#2F9EE8 #2F42E8 #792FE8
triadic
#2F42E8 #E82F42 #42E82F
tetradic
#2F42E8 #E82F9E #E8D52F #2FE879
square
#2F42E8 #E82F9E #E8D52F #2FE879
split-complementary
#2F42E8 #E8792F #9EE82F
monochromatic
#101C8D #1628C4 #2F42E8 #6674EE #9DA6F4

Accessibility & contrast

On white

6.85
#2F42E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2F42E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F42E8
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42E8#FFFFFF#000000##FFFFFF
##2F42E81.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064ED
Deuteranopia (green-blind)
#0051E5
Tritanopia (blue-blind)
#007291
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f42e8;
/* rgb */ color: rgb(47, 66, 232);
/* oklch */ color: oklch(49.0% 0.245 268.9);
Tailwind
colors: {
  custom: {
    50: '#8777f1',
    500: '#2f42e8',
    950: '#000000',
  },
}
SCSS
$custom: #2f42e8;
$custom-light: #8777f1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42e8",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 232
  },
  "hsl": {
    "h": 233.838,
    "s": 80.087,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49011,
    "c": 0.24535,
    "h": 268.9
  },
  "luminance": 0.10327
}

Semantic roles & 50–950 ramp

primary
#2F42E8
secondary
#E0D892
accent
#E231F7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0917
muted
#7E7B85

Preview Lab

Preview with #2F42E8

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

Preview Lab → · Contrast checker → · Palette generator →

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