#2F4EB9#2F4EB9

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

Color values

HEX#2F4EB9
RGBrgb(47, 78, 185)
HSLhsl(227, 59%, 45%)
HSVhsv(227, 75%, 73%)
CMYKcmyk(74.6%, 57.8%, 0%, 27.5%)
CIE-LABlab(37.03, 26.71, -59.79)
CIE-LCHlch(37.03, 65.48, 294.07°)
OKLaboklab(46.72% -0.0089 -0.1725)
OKLCHoklch(46.72% 0.173 267.1)
XYZxyz(12.6506, 9.5545, 47.0670)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EB9 #B99A2F
analogous
#2F93B9 #2F4EB9 #552FB9
triadic
#2F4EB9 #B92F4E #4EB92F
tetradic
#2F4EB9 #B92F93 #B99A2F #2FB955
square
#2F4EB9 #B92F93 #B99A2F #2FB955
split-complementary
#2F4EB9 #B9552F #93B92F
monochromatic
#162557 #233988 #2F4EB9 #526FD3 #8398DF

Accessibility & contrast

On white

7.21
#2F4EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2F4EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EB9
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EB9#FFFFFF#000000##FFFFFF
##2F4EB91.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f4eb9;
/* rgb */ color: rgb(47, 78, 185);
/* oklch */ color: oklch(46.7% 0.173 267.1);
Tailwind
colors: {
  custom: {
    50: '#7b7fcf',
    500: '#2f4eb9',
    950: '#000000',
  },
}
SCSS
$custom: #2f4eb9;
$custom-light: #7b7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4eb9",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 185
  },
  "hsl": {
    "h": 226.522,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46717,
    "c": 0.17275,
    "h": 267.1
  },
  "luminance": 0.09556
}

Semantic roles & 50–950 ramp

primary
#2F4EB9
secondary
#C9B77B
accent
#BF45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F4EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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