#2F4DB8#2F4DB8

#2F4DB8 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.4% C 0.173 H 267.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#2F4DB8
RGBrgb(47, 77, 184)
HSLhsl(227, 59%, 45%)
HSVhsv(227, 74%, 72%)
CMYKcmyk(74.5%, 58.2%, 0%, 27.8%)
CIE-LABlab(36.69, 26.99, -59.76)
CIE-LCHlch(36.69, 65.57, 294.31°)
OKLaboklab(46.44% -0.0082 -0.1724)
OKLCHoklch(46.44% 0.173 267.3)
XYZxyz(12.4749, 9.3714, 46.4895)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DB8 #B89A2F
analogous
#2F92B8 #2F4DB8 #552FB8
triadic
#2F4DB8 #B82F4D #4DB82F
tetradic
#2F4DB8 #B82F92 #B89A2F #2FB855
square
#2F4DB8 #B82F92 #B89A2F #2FB855
split-complementary
#2F4DB8 #B8552F #92B82F
monochromatic
#162457 #233987 #2F4DB8 #526ED3 #8297DF

Accessibility & contrast

On white

7.31
#2F4DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4DB8
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DB8#FFFFFF#000000##FFFFFF
##2F4DB81.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#0050B6
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4db8;
/* rgb */ color: rgb(47, 77, 184);
/* oklch */ color: oklch(46.4% 0.173 267.3);
Tailwind
colors: {
  custom: {
    50: '#7b7ece',
    500: '#2f4db8',
    950: '#000000',
  },
}
SCSS
$custom: #2f4db8;
$custom-light: #7b7ece;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4db8",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 184
  },
  "hsl": {
    "h": 226.861,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46437,
    "c": 0.17262,
    "h": 267.3
  },
  "luminance": 0.09373
}

Semantic roles & 50–950 ramp

primary
#2F4DB8
secondary
#C8B77B
accent
#C045E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F4DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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