#2F4FA3#2F4FA3

#2F4FA3 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.141 H 265.4°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#2F4FA3
RGBrgb(47, 79, 163)
HSLhsl(223, 55%, 41%)
HSVhsv(223, 71%, 64%)
CMYKcmyk(71.2%, 51.5%, 0%, 36.1%)
CIE-LABlab(35.67, 17.77, -48.94)
CIE-LCHlch(35.67, 52.06, 289.95°)
OKLaboklab(45.18% -0.0113 -0.1406)
OKLCHoklch(45.18% 0.141 265.4)
XYZxyz(10.5768, 8.8396, 35.7920)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FA3 #A3832F
analogous
#2F89A3 #2F4FA3 #492FA3
triadic
#2F4FA3 #A32F4F #4FA32F
tetradic
#2F4FA3 #A32F89 #A3832F #2FA349
square
#2F4FA3 #A32F89 #A3832F #2FA349
split-complementary
#2F4FA3 #A3492F #89A32F
monochromatic
#142144 #213873 #2F4FA3 #466ACA #7590D7

Accessibility & contrast

On white

7.59
#2F4FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2F4FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FA3
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FA3#FFFFFF#000000##FFFFFF
##2F4FA31.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5AA6
Deuteranopia (green-blind)
#004FA1
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4fa3;
/* rgb */ color: rgb(47, 79, 163);
/* oklch */ color: oklch(45.2% 0.141 265.4);
Tailwind
colors: {
  custom: {
    50: '#767fbf',
    500: '#2f4fa3',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fa3;
$custom-light: #767fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fa3",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 163
  },
  "hsl": {
    "h": 223.448,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45178,
    "c": 0.14103,
    "h": 265.4
  },
  "luminance": 0.08841
}

Semantic roles & 50–950 ramp

primary
#2F4FA3
secondary
#BFA96F
accent
#B549DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F4FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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