#2F4DB3#2F4DB3

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

Color values

HEX#2F4DB3
RGBrgb(47, 77, 179)
HSLhsl(226, 58%, 44%)
HSVhsv(226, 74%, 70%)
CMYKcmyk(73.7%, 57%, 0%, 29.8%)
CIE-LABlab(36.30, 25.12, -57.44)
CIE-LCHlch(36.30, 62.69, 293.62°)
OKLaboklab(46.02% -0.0084 -0.1656)
OKLCHoklch(46.02% 0.166 267.1)
XYZxyz(11.9600, 9.1655, 43.7779)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DB3 #B3952F
analogous
#2F8FB3 #2F4DB3 #532FB3
triadic
#2F4DB3 #B32F4D #4DB32F
tetradic
#2F4DB3 #B32F8F #B3952F #2FB353
square
#2F4DB3 #B32F8F #B3952F #2FB353
split-complementary
#2F4DB3 #B3532F #8FB32F
monochromatic
#162352 #223883 #2F4DB3 #4F6CD1 #7F94DD

Accessibility & contrast

On white

7.41
#2F4DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2F4DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DB3
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DB3#FFFFFF#000000##FFFFFF
##2F4DB31.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4db3;
/* rgb */ color: rgb(47, 77, 179);
/* oklch */ color: oklch(46.0% 0.166 267.1);
Tailwind
colors: {
  custom: {
    50: '#7a7ecb',
    500: '#2f4db3',
    950: '#000000',
  },
}
SCSS
$custom: #2f4db3;
$custom-light: #7a7ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4db3",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 179
  },
  "hsl": {
    "h": 226.364,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46024,
    "c": 0.16584,
    "h": 267.1
  },
  "luminance": 0.09167
}

Semantic roles & 50–950 ramp

primary
#2F4DB3
secondary
#C6B478
accent
#BE46E2
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F4DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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