#2F4FB2#2F4FB2

#2F4FB2 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.162 H 266.5°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#2F4FB2
RGBrgb(47, 79, 178)
HSLhsl(225, 58%, 44%)
HSVhsv(225, 74%, 70%)
CMYKcmyk(73.6%, 55.6%, 0%, 30.2%)
CIE-LABlab(36.76, 23.42, -56.10)
CIE-LCHlch(36.76, 60.80, 292.66°)
OKLaboklab(46.35% -0.01 -0.1617)
OKLCHoklch(46.35% 0.162 266.5)
XYZxyz(12.0013, 9.4094, 43.2945)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FB2 #B2922F
analogous
#2F90B2 #2F4FB2 #512FB2
triadic
#2F4FB2 #B22F4F #4FB22F
tetradic
#2F4FB2 #B22F90 #B2922F #2FB251
square
#2F4FB2 #B22F90 #B2922F #2FB251
split-complementary
#2F4FB2 #B2512F #90B22F
monochromatic
#152451 #223A82 #2F4FB2 #4E6ED0 #7E95DD

Accessibility & contrast

On white

7.29
#2F4FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2F4FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FB2
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FB2#FFFFFF#000000##FFFFFF
##2F4FB21.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4fb2;
/* rgb */ color: rgb(47, 79, 178);
/* oklch */ color: oklch(46.3% 0.162 266.5);
Tailwind
colors: {
  custom: {
    50: '#7a7fca',
    500: '#2f4fb2',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fb2;
$custom-light: #7a7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fb2",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 225.344,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46346,
    "c": 0.16197,
    "h": 266.5
  },
  "luminance": 0.09411
}

Semantic roles & 50–950 ramp

primary
#2F4FB2
secondary
#C6B377
accent
#BC46E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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