#2F4FC3#2F4FC3

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

Color values

HEX#2F4FC3
RGBrgb(47, 79, 195)
HSLhsl(227, 61%, 47%)
HSVhsv(227, 76%, 76%)
CMYKcmyk(75.9%, 59.5%, 0%, 23.5%)
CIE-LABlab(38.08, 29.77, -63.93)
CIE-LCHlch(38.08, 70.52, 294.97°)
OKLaboklab(47.75% -0.0093 -0.1847)
OKLCHoklch(47.75% 0.185 267.1)
XYZxyz(13.8152, 10.1349, 52.8473)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FC3 #C3A32F
analogous
#2F99C3 #2F4FC3 #592FC3
triadic
#2F4FC3 #C32F4F #4FC32F
tetradic
#2F4FC3 #C32F99 #C3A32F #2FC359
square
#2F4FC3 #C32F99 #C3A32F #2FC359
split-complementary
#2F4FC3 #C3592F #99C32F
monochromatic
#172760 #233B92 #2F4FC3 #5874D7 #8A9DE3

Accessibility & contrast

On white

6.94
#2F4FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2F4FC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F4FC3
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FC3#FFFFFF#000000##FFFFFF
##2F4FC31.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C7
Deuteranopia (green-blind)
#0053C1
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f4fc3;
/* rgb */ color: rgb(47, 79, 195);
/* oklch */ color: oklch(47.8% 0.185 267.1);
Tailwind
colors: {
  custom: {
    50: '#7e80d6',
    500: '#2f4fc3',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fc3;
$custom-light: #7e80d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fc3",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 195
  },
  "hsl": {
    "h": 227.027,
    "s": 61.157,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47751,
    "c": 0.1849,
    "h": 267.1
  },
  "luminance": 0.10136
}

Semantic roles & 50–950 ramp

primary
#2F4FC3
secondary
#CDBC81
accent
#C244E4
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F4FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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