#2F4FC9#2F4FC9

#2F4FC9 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.3% C 0.193 H 267.2°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#2F4FC9
RGBrgb(47, 79, 201)
HSLhsl(228, 62%, 49%)
HSVhsv(228, 77%, 79%)
CMYKcmyk(76.6%, 60.7%, 0%, 21.2%)
CIE-LABlab(38.57, 31.99, -66.62)
CIE-LCHlch(38.57, 73.90, 295.65°)
OKLaboklab(48.27% -0.0093 -0.1925)
OKLCHoklch(48.27% 0.193 267.2)
XYZxyz(14.5072, 10.4117, 56.4921)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FC9 #C9A92F
analogous
#2F9CC9 #2F4FC9 #5C2FC9
triadic
#2F4FC9 #C92F4F #4FC92F
tetradic
#2F4FC9 #C92F9C #C9A92F #2FC95C
square
#2F4FC9 #C92F9C #C9A92F #2FC95C
split-complementary
#2F4FC9 #C95C2F #9CC92F
monochromatic
#182866 #233C97 #2F4FC9 #5C76D9 #8EA0E5

Accessibility & contrast

On white

6.81
#2F4FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2F4FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F4FC9
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FC9#FFFFFF#000000##FFFFFF
##2F4FC91.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CD
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#006E84
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f4fc9;
/* rgb */ color: rgb(47, 79, 201);
/* oklch */ color: oklch(48.3% 0.193 267.2);
Tailwind
colors: {
  custom: {
    50: '#7f80da',
    500: '#2f4fc9',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fc9;
$custom-light: #7f80da;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fc9",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 201
  },
  "hsl": {
    "h": 227.532,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48266,
    "c": 0.19277,
    "h": 267.2
  },
  "luminance": 0.10413
}

Semantic roles & 50–950 ramp

primary
#2F4FC9
secondary
#CFC085
accent
#C343E5
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #2F4FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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