#2F4FC4#2F4FC4

#2F4FC4 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.8% C 0.186 H 267.1°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#2F4FC4
RGBrgb(47, 79, 196)
HSLhsl(227, 61%, 48%)
HSVhsv(227, 76%, 77%)
CMYKcmyk(76%, 59.7%, 0%, 23.1%)
CIE-LABlab(38.16, 30.14, -64.38)
CIE-LCHlch(38.16, 71.09, 295.09°)
OKLaboklab(47.84% -0.0093 -0.186)
OKLCHoklch(47.84% 0.186 267.1)
XYZxyz(13.9286, 10.1803, 53.4448)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FC4 #C4A42F
analogous
#2F9AC4 #2F4FC4 #592FC4
triadic
#2F4FC4 #C42F4F #4FC42F
tetradic
#2F4FC4 #C42F9A #C4A42F #2FC459
square
#2F4FC4 #C42F9A #C4A42F #2FC459
split-complementary
#2F4FC4 #C4592F #9AC42F
monochromatic
#172761 #233B93 #2F4FC4 #5974D7 #8A9DE3

Accessibility & contrast

On white

6.92
#2F4FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2F4FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F4FC4
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FC4#FFFFFF#000000##FFFFFF
##2F4FC41.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0053C2
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f4fc4;
/* rgb */ color: rgb(47, 79, 196);
/* oklch */ color: oklch(47.8% 0.186 267.1);
Tailwind
colors: {
  custom: {
    50: '#7e80d7',
    500: '#2f4fc4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fc4;
$custom-light: #7e80d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fc4",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 196
  },
  "hsl": {
    "h": 227.114,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47836,
    "c": 0.18621,
    "h": 267.1
  },
  "luminance": 0.10182
}

Semantic roles & 50–950 ramp

primary
#2F4FC4
secondary
#CDBD82
accent
#C243E4
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F4FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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