#2F4DB7#2F4DB7

#2F4DB7 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.171 H 267.2°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#2F4DB7
RGBrgb(47, 77, 183)
HSLhsl(227, 59%, 45%)
HSVhsv(227, 74%, 72%)
CMYKcmyk(74.3%, 57.9%, 0%, 28.2%)
CIE-LABlab(36.61, 26.61, -59.30)
CIE-LCHlch(36.61, 64.99, 294.17°)
OKLaboklab(46.35% -0.0082 -0.1711)
OKLCHoklch(46.35% 0.171 267.2)
XYZxyz(12.3704, 9.3297, 45.9394)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DB7 #B7992F
analogous
#2F91B7 #2F4DB7 #552FB7
triadic
#2F4DB7 #B72F4D #4DB72F
tetradic
#2F4DB7 #B72F91 #B7992F #2FB755
square
#2F4DB7 #B72F91 #B7992F #2FB755
split-complementary
#2F4DB7 #B7552F #91B72F
monochromatic
#162456 #223986 #2F4DB7 #516DD2 #8296DF

Accessibility & contrast

On white

7.33
#2F4DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4DB7
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DB7#FFFFFF#000000##FFFFFF
##2F4DB71.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4db7;
/* rgb */ color: rgb(47, 77, 183);
/* oklch */ color: oklch(46.4% 0.171 267.2);
Tailwind
colors: {
  custom: {
    50: '#7b7ecd',
    500: '#2f4db7',
    950: '#000000',
  },
}
SCSS
$custom: #2f4db7;
$custom-light: #7b7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4db7",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 226.765,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46354,
    "c": 0.17128,
    "h": 267.2
  },
  "luminance": 0.09331
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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