#2F4EF2#2F4EF2

#2F4EF2 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.8% C 0.245 H 267.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#2F4EF2
RGBrgb(47, 78, 242)
HSLhsl(230, 88%, 57%)
HSVhsv(230, 81%, 95%)
CMYKcmyk(80.6%, 67.8%, 0%, 5.1%)
CIE-LABlab(41.94, 47.25, -84.50)
CIE-LCHlch(41.94, 96.82, 299.21°)
OKLaboklab(51.84% -0.0104 -0.2448)
OKLCHoklch(51.84% 0.245 267.6)
XYZxyz(19.9181, 12.4615, 85.3427)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EF2 #F2D32F
analogous
#2FAFF2 #2F4EF2 #722FF2
triadic
#2F4EF2 #F22F4E #4EF22F
tetradic
#2F4EF2 #F22FAF #F2D32F #2FF272
square
#2F4EF2 #F22FAF #F2D32F #2FF272
split-complementary
#2F4EF2 #F2722F #AFF22F
monochromatic
#0A219D #0D2DD6 #2F4EF2 #697FF6 #A2B0F9

Accessibility & contrast

On white

6.01
#2F4EF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#2F4EF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F4EF2
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EF2#FFFFFF#000000##FFFFFF
##2F4EF21.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CF7
Deuteranopia (green-blind)
#005AEF
Tritanopia (blue-blind)
#007B9A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f4ef2;
/* rgb */ color: rgb(47, 78, 242);
/* oklch */ color: oklch(51.8% 0.245 267.6);
Tailwind
colors: {
  custom: {
    50: '#8980f8',
    500: '#2f4ef2',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ef2;
$custom-light: #8980f8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ef2",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 242
  },
  "hsl": {
    "h": 230.462,
    "s": 88.235,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5184,
    "c": 0.24507,
    "h": 267.6
  },
  "luminance": 0.12464
}

Semantic roles & 50–950 ramp

primary
#2F4EF2
secondary
#E6DA97
accent
#DD29FE
background
#F9F7FF
surface
#F2EEFF
border
#CCC9D7
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #2F4EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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