#2F4EB0#2F4EB0

#2F4EB0 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.0% C 0.160 H 266.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#2F4EB0
RGBrgb(47, 78, 176)
HSLhsl(226, 58%, 44%)
HSVhsv(226, 73%, 69%)
CMYKcmyk(73.3%, 55.7%, 0%, 31%)
CIE-LABlab(36.34, 23.33, -55.60)
CIE-LCHlch(36.34, 60.30, 292.77°)
OKLaboklab(45.98% -0.0093 -0.1602)
OKLCHoklch(45.98% 0.16 266.7)
XYZxyz(11.7304, 9.1865, 42.2208)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EB0 #B0912F
analogous
#2F8EB0 #2F4EB0 #502FB0
triadic
#2F4EB0 #B02F4E #4EB02F
tetradic
#2F4EB0 #B02F8E #B0912F #2FB050
square
#2F4EB0 #B02F8E #B0912F #2FB050
split-complementary
#2F4EB0 #B0502F #8EB02F
monochromatic
#15234F #223980 #2F4EB0 #4D6CCF #7D94DC

Accessibility & contrast

On white

7.40
#2F4EB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2F4EB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EB0
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EB0#FFFFFF#000000##FFFFFF
##2F4EB01.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB3
Deuteranopia (green-blind)
#0050AE
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4eb0;
/* rgb */ color: rgb(47, 78, 176);
/* oklch */ color: oklch(46.0% 0.160 266.7);
Tailwind
colors: {
  custom: {
    50: '#797fc8',
    500: '#2f4eb0',
    950: '#000000',
  },
}
SCSS
$custom: #2f4eb0;
$custom-light: #797fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4eb0",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 176
  },
  "hsl": {
    "h": 225.581,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45982,
    "c": 0.16047,
    "h": 266.7
  },
  "luminance": 0.09188
}

Semantic roles & 50–950 ramp

primary
#2F4EB0
secondary
#C5B276
accent
#BC47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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