#2F4EBB#2F4EBB

#2F4EBB is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.9% C 0.175 H 267.1°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#2F4EBB
RGBrgb(47, 78, 187)
HSLhsl(227, 60%, 46%)
HSVhsv(227, 75%, 73%)
CMYKcmyk(74.9%, 58.3%, 0%, 26.7%)
CIE-LABlab(37.19, 27.45, -60.71)
CIE-LCHlch(37.19, 66.63, 294.33°)
OKLaboklab(46.88% -0.0088 -0.1752)
OKLCHoklch(46.88% 0.175 267.1)
XYZxyz(12.8632, 9.6396, 48.1868)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EBB #BB9C2F
analogous
#2F94BB #2F4EBB #562FBB
triadic
#2F4EBB #BB2F4E #4EBB2F
tetradic
#2F4EBB #BB2F94 #BB9C2F #2FBB56
square
#2F4EBB #BB2F94 #BB9C2F #2FBB56
split-complementary
#2F4EBB #BB562F #94BB2F
monochromatic
#162559 #233A8A #2F4EBB #5370D4 #8499E0

Accessibility & contrast

On white

7.17
#2F4EBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2F4EBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EBB
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EBB#FFFFFF#000000##FFFFFF
##2F4EBB1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#00697D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f4ebb;
/* rgb */ color: rgb(47, 78, 187);
/* oklch */ color: oklch(46.9% 0.175 267.1);
Tailwind
colors: {
  custom: {
    50: '#7c7fd0',
    500: '#2f4ebb',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ebb;
$custom-light: #7c7fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ebb",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 187
  },
  "hsl": {
    "h": 226.714,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46883,
    "c": 0.17544,
    "h": 267.1
  },
  "luminance": 0.09641
}

Semantic roles & 50–950 ramp

primary
#2F4EBB
secondary
#C9B87C
accent
#C045E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F4EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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