#2F4CC4#2F4CC4

#2F4CC4 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.3% C 0.190 H 267.8°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2F4CC4
RGBrgb(47, 76, 196)
HSLhsl(228, 61%, 48%)
HSVhsv(228, 76%, 77%)
CMYKcmyk(76%, 61.2%, 0%, 23.1%)
CIE-LABlab(37.40, 32.08, -65.62)
CIE-LCHlch(37.40, 73.04, 296.05°)
OKLaboklab(47.27% -0.0073 -0.1897)
OKLCHoklch(47.27% 0.19 267.8)
XYZxyz(13.7171, 9.7572, 53.3743)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CC4 #C4A72F
analogous
#2F97C4 #2F4CC4 #5C2FC4
triadic
#2F4CC4 #C42F4C #4CC42F
tetradic
#2F4CC4 #C42F97 #C4A72F #2FC45C
square
#2F4CC4 #C42F97 #C4A72F #2FC45C
split-complementary
#2F4CC4 #C45C2F #97C42F
monochromatic
#172661 #233993 #2F4CC4 #5972D7 #8A9CE3

Accessibility & contrast

On white

7.11
#2F4CC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2F4CC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4CC4
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CC4#FFFFFF#000000##FFFFFF
##2F4CC41.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC8
Deuteranopia (green-blind)
#0051C2
Tritanopia (blue-blind)
#006B81
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f4cc4;
/* rgb */ color: rgb(47, 76, 196);
/* oklch */ color: oklch(47.3% 0.190 267.8);
Tailwind
colors: {
  custom: {
    50: '#7e7dd7',
    500: '#2f4cc4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cc4;
$custom-light: #7e7dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cc4",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 196
  },
  "hsl": {
    "h": 228.322,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47271,
    "c": 0.1898,
    "h": 267.8
  },
  "luminance": 0.09759
}

Semantic roles & 50–950 ramp

primary
#2F4CC4
secondary
#CDBE82
accent
#C543E4
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #2F4CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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