#2F4FB3#2F4FB3

#2F4FB3 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.163 H 266.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2F4FB3
RGBrgb(47, 79, 179)
HSLhsl(225, 58%, 44%)
HSVhsv(225, 74%, 70%)
CMYKcmyk(73.7%, 55.9%, 0%, 29.8%)
CIE-LABlab(36.84, 23.80, -56.57)
CIE-LCHlch(36.84, 61.37, 292.82°)
OKLaboklab(46.43% -0.0099 -0.163)
OKLCHoklch(46.43% 0.163 266.5)
XYZxyz(12.1021, 9.4497, 43.8252)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FB3 #B3932F
analogous
#2F91B3 #2F4FB3 #512FB3
triadic
#2F4FB3 #B32F4F #4FB32F
tetradic
#2F4FB3 #B32F91 #B3932F #2FB351
square
#2F4FB3 #B32F91 #B3932F #2FB351
split-complementary
#2F4FB3 #B3512F #91B32F
monochromatic
#162452 #223A83 #2F4FB3 #4F6ED1 #7F96DD

Accessibility & contrast

On white

7.27
#2F4FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2F4FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FB3
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FB3#FFFFFF#000000##FFFFFF
##2F4FB31.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f4fb3;
/* rgb */ color: rgb(47, 79, 179);
/* oklch */ color: oklch(46.4% 0.163 266.5);
Tailwind
colors: {
  custom: {
    50: '#7a7fca',
    500: '#2f4fb3',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fb3;
$custom-light: #7a7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fb3",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 179
  },
  "hsl": {
    "h": 225.455,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46426,
    "c": 0.16334,
    "h": 266.5
  },
  "luminance": 0.09451
}

Semantic roles & 50–950 ramp

primary
#2F4FB3
secondary
#C6B378
accent
#BC46E2
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2F4FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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