#2F4EB4#2F4EB4

#2F4EB4 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.3% C 0.166 H 266.9°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#2F4EB4
RGBrgb(47, 78, 180)
HSLhsl(226, 59%, 45%)
HSVhsv(226, 74%, 71%)
CMYKcmyk(73.9%, 56.7%, 0%, 29.4%)
CIE-LABlab(36.64, 24.83, -57.47)
CIE-LCHlch(36.64, 62.61, 293.37°)
OKLaboklab(46.31% -0.0091 -0.1657)
OKLCHoklch(46.31% 0.166 266.9)
XYZxyz(12.1320, 9.3471, 44.3360)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EB4 #B4952F
analogous
#2F91B4 #2F4EB4 #532FB4
triadic
#2F4EB4 #B42F4E #4EB42F
tetradic
#2F4EB4 #B42F91 #B4952F #2FB453
square
#2F4EB4 #B42F91 #B4952F #2FB453
split-complementary
#2F4EB4 #B4532F #91B42F
monochromatic
#162453 #223983 #2F4EB4 #4F6DD1 #8096DE

Accessibility & contrast

On white

7.32
#2F4EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2F4EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EB4
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EB4#FFFFFF#000000##FFFFFF
##2F4EB41.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4eb4;
/* rgb */ color: rgb(47, 78, 180);
/* oklch */ color: oklch(46.3% 0.166 266.9);
Tailwind
colors: {
  custom: {
    50: '#7a7fcb',
    500: '#2f4eb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4eb4;
$custom-light: #7a7fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4eb4",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 226.015,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46306,
    "c": 0.16596,
    "h": 266.9
  },
  "luminance": 0.09348
}

Semantic roles & 50–950 ramp

primary
#2F4EB4
secondary
#C7B478
accent
#BD46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2F4EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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