#2F4DB4#2F4DB4

#2F4DB4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.167 H 267.1°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#2F4DB4
RGBrgb(47, 77, 180)
HSLhsl(226, 59%, 45%)
HSVhsv(226, 74%, 71%)
CMYKcmyk(73.9%, 57.2%, 0%, 29.4%)
CIE-LABlab(36.38, 25.49, -57.91)
CIE-LCHlch(36.38, 63.27, 293.76°)
OKLaboklab(46.11% -0.0083 -0.167)
OKLCHoklch(46.11% 0.167 267.1)
XYZxyz(12.0615, 9.2061, 44.3125)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DB4 #B4962F
analogous
#2F90B4 #2F4DB4 #542FB4
triadic
#2F4DB4 #B42F4D #4DB42F
tetradic
#2F4DB4 #B42F90 #B4962F #2FB454
square
#2F4DB4 #B42F90 #B4962F #2FB454
split-complementary
#2F4DB4 #B4542F #90B42F
monochromatic
#162353 #223883 #2F4DB4 #4F6CD1 #8095DE

Accessibility & contrast

On white

7.39
#2F4DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4DB4
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DB4#FFFFFF#000000##FFFFFF
##2F4DB41.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4db4;
/* rgb */ color: rgb(47, 77, 180);
/* oklch */ color: oklch(46.1% 0.167 267.1);
Tailwind
colors: {
  custom: {
    50: '#7a7ecb',
    500: '#2f4db4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4db4;
$custom-light: #7a7ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4db4",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 226.466,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46106,
    "c": 0.16721,
    "h": 267.1
  },
  "luminance": 0.09207
}

Semantic roles & 50–950 ramp

primary
#2F4DB4
secondary
#C7B578
accent
#BF46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F4DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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