#2F4FBA#2F4FBA

#2F4FBA is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.0% C 0.173 H 266.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2F4FBA
RGBrgb(47, 79, 186)
HSLhsl(226, 60%, 46%)
HSVhsv(226, 75%, 73%)
CMYKcmyk(74.7%, 57.5%, 0%, 27.1%)
CIE-LABlab(37.37, 26.42, -59.82)
CIE-LCHlch(37.37, 65.40, 293.83°)
OKLaboklab(47% -0.0096 -0.1726)
OKLCHoklch(47% 0.173 266.8)
XYZxyz(12.8281, 9.7401, 47.6488)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FBA #BA9A2F
analogous
#2F94BA #2F4FBA #542FBA
triadic
#2F4FBA #BA2F4F #4FBA2F
tetradic
#2F4FBA #BA2F94 #BA9A2F #2FBA54
square
#2F4FBA #BA2F94 #BA9A2F #2FBA54
split-complementary
#2F4FBA #BA542F #94BA2F
monochromatic
#162558 #233A89 #2F4FBA #5370D3 #8499E0

Accessibility & contrast

On white

7.12
#2F4FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2F4FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FBA
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FBA#FFFFFF#000000##FFFFFF
##2F4FBA1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f4fba;
/* rgb */ color: rgb(47, 79, 186);
/* oklch */ color: oklch(47.0% 0.173 266.8);
Tailwind
colors: {
  custom: {
    50: '#7b7fd0',
    500: '#2f4fba',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fba;
$custom-light: #7b7fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fba",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 186
  },
  "hsl": {
    "h": 226.187,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46997,
    "c": 0.17287,
    "h": 266.8
  },
  "luminance": 0.09741
}

Semantic roles & 50–950 ramp

primary
#2F4FBA
secondary
#C9B77C
accent
#BE45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F4FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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