#2F4AB0#2F4AB0

#2F4AB0 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.2% C 0.165 H 267.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#2F4AB0
RGBrgb(47, 74, 176)
HSLhsl(227, 58%, 44%)
HSVhsv(227, 73%, 69%)
CMYKcmyk(73.3%, 58%, 0%, 31%)
CIE-LABlab(35.27, 25.97, -57.34)
CIE-LCHlch(35.27, 62.95, 294.37°)
OKLaboklab(45.18% -0.0062 -0.1654)
OKLCHoklch(45.18% 0.165 267.8)
XYZxyz(11.4548, 8.6353, 42.1290)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AB0 #B0952F
analogous
#2F8AB0 #2F4AB0 #542FB0
triadic
#2F4AB0 #B02F4A #4AB02F
tetradic
#2F4AB0 #B02F8A #B0952F #2FB054
square
#2F4AB0 #B02F8A #B0952F #2FB054
split-complementary
#2F4AB0 #B0542F #8AB02F
monochromatic
#15214F #223680 #2F4AB0 #4D68CF #7D91DC

Accessibility & contrast

On white

7.70
#2F4AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2F4AB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AB0
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AB0#FFFFFF#000000##FFFFFF
##2F4AB01.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B3
Deuteranopia (green-blind)
#004DAE
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4ab0;
/* rgb */ color: rgb(47, 74, 176);
/* oklch */ color: oklch(45.2% 0.165 267.8);
Tailwind
colors: {
  custom: {
    50: '#7a7cc8',
    500: '#2f4ab0',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ab0;
$custom-light: #7a7cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ab0",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 176
  },
  "hsl": {
    "h": 227.442,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4518,
    "c": 0.16549,
    "h": 267.8
  },
  "luminance": 0.08636
}

Semantic roles & 50–950 ramp

primary
#2F4AB0
secondary
#C5B476
accent
#C147E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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