#2F4FA1#2F4FA1

#2F4FA1 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.0% C 0.138 H 265.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#2F4FA1
RGBrgb(47, 79, 161)
HSLhsl(223, 55%, 41%)
HSVhsv(223, 71%, 63%)
CMYKcmyk(70.8%, 50.9%, 0%, 36.9%)
CIE-LABlab(35.53, 17.01, -47.96)
CIE-LCHlch(35.53, 50.89, 289.53°)
OKLaboklab(45.03% -0.0115 -0.1377)
OKLCHoklch(45.03% 0.138 265.2)
XYZxyz(10.3990, 8.7685, 34.8557)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FA1 #A1812F
analogous
#2F88A1 #2F4FA1 #482FA1
triadic
#2F4FA1 #A12F4F #4FA12F
tetradic
#2F4FA1 #A12F88 #A1812F #2FA148
square
#2F4FA1 #A12F88 #A1812F #2FA148
split-complementary
#2F4FA1 #A1482F #88A12F
monochromatic
#132142 #213872 #2F4FA1 #456AC9 #7490D6

Accessibility & contrast

On white

7.63
#2F4FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2F4FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FA1
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FA1#FFFFFF#000000##FFFFFF
##2F4FA11.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F59A4
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4fa1;
/* rgb */ color: rgb(47, 79, 161);
/* oklch */ color: oklch(45.0% 0.138 265.2);
Tailwind
colors: {
  custom: {
    50: '#767fbd',
    500: '#2f4fa1',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fa1;
$custom-light: #767fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fa1",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 223.158,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45028,
    "c": 0.1382,
    "h": 265.2
  },
  "luminance": 0.0877
}

Semantic roles & 50–950 ramp

primary
#2F4FA1
secondary
#BEA86E
accent
#B44ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F4FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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