#2F4FD4#2F4FD4

#2F4FD4 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 49.2% C 0.207 H 267.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#2F4FD4
RGBrgb(47, 79, 212)
HSLhsl(228, 66%, 51%)
HSVhsv(228, 78%, 83%)
CMYKcmyk(77.8%, 62.7%, 0%, 16.9%)
CIE-LABlab(39.49, 36.01, -71.47)
CIE-LCHlch(39.49, 80.02, 296.74°)
OKLaboklab(49.23% -0.0094 -0.2067)
OKLCHoklch(49.23% 0.207 267.4)
XYZxyz(15.8478, 10.9480, 63.5525)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FD4 #D4B42F
analogous
#2FA1D4 #2F4FD4 #622FD4
triadic
#2F4FD4 #D42F4F #4FD42F
tetradic
#2F4FD4 #D42FA1 #D4B42F #2FD462
square
#2F4FD4 #D42FA1 #D4B42F #2FD462
split-complementary
#2F4FD4 #D4622F #A1D42F
monochromatic
#172971 #223BA4 #2F4FD4 #627ADE #94A5E9

Accessibility & contrast

On white

6.58
#2F4FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2F4FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F4FD4
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FD4#FFFFFF#000000##FFFFFF
##2F4FD41.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D8
Deuteranopia (green-blind)
#0055D1
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f4fd4;
/* rgb */ color: rgb(47, 79, 212);
/* oklch */ color: oklch(49.2% 0.207 267.4);
Tailwind
colors: {
  custom: {
    50: '#8280e2',
    500: '#2f4fd4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fd4;
$custom-light: #8280e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fd4",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 212
  },
  "hsl": {
    "h": 228.364,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.49233,
    "c": 0.20696,
    "h": 267.4
  },
  "luminance": 0.1095
}

Semantic roles & 50–950 ramp

primary
#2F4FD4
secondary
#D4C68B
accent
#C83FE9
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0C0A16
muted
#7D7C84

Preview Lab

Preview with #2F4FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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