#2F4EB8#2F4EB8

#2F4EB8 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.171 H 267.0°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2F4EB8
RGBrgb(47, 78, 184)
HSLhsl(226, 59%, 45%)
HSVhsv(226, 74%, 72%)
CMYKcmyk(74.5%, 57.6%, 0%, 27.8%)
CIE-LABlab(36.95, 26.33, -59.33)
CIE-LCHlch(36.95, 64.91, 293.93°)
OKLaboklab(46.63% -0.0089 -0.1712)
OKLCHoklch(46.63% 0.171 267)
XYZxyz(12.5454, 9.5125, 46.5130)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EB8 #B8992F
analogous
#2F93B8 #2F4EB8 #542FB8
triadic
#2F4EB8 #B82F4E #4EB82F
tetradic
#2F4EB8 #B82F93 #B8992F #2FB854
square
#2F4EB8 #B82F93 #B8992F #2FB854
split-complementary
#2F4EB8 #B8542F #93B82F
monochromatic
#162557 #233987 #2F4EB8 #526FD3 #8297DF

Accessibility & contrast

On white

7.23
#2F4EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2F4EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EB8
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EB8#FFFFFF#000000##FFFFFF
##2F4EB81.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f4eb8;
/* rgb */ color: rgb(47, 78, 184);
/* oklch */ color: oklch(46.6% 0.171 267.0);
Tailwind
colors: {
  custom: {
    50: '#7b7fce',
    500: '#2f4eb8',
    950: '#000000',
  },
}
SCSS
$custom: #2f4eb8;
$custom-light: #7b7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4eb8",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 184
  },
  "hsl": {
    "h": 226.423,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46634,
    "c": 0.17139,
    "h": 267
  },
  "luminance": 0.09514
}

Semantic roles & 50–950 ramp

primary
#2F4EB8
secondary
#C8B77B
accent
#BF45E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F4EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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