#2F4EB1#2F4EB1

#2F4EB1 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.162 H 266.7°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#2F4EB1
RGBrgb(47, 78, 177)
HSLhsl(226, 58%, 44%)
HSVhsv(226, 73%, 69%)
CMYKcmyk(73.4%, 55.9%, 0%, 30.6%)
CIE-LABlab(36.42, 23.71, -56.07)
CIE-LCHlch(36.42, 60.88, 292.92°)
OKLaboklab(46.06% -0.0093 -0.1616)
OKLCHoklch(46.06% 0.162 266.7)
XYZxyz(11.8297, 9.2262, 42.7438)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EB1 #B1922F
analogous
#2F8FB1 #2F4EB1 #512FB1
triadic
#2F4EB1 #B12F4E #4EB12F
tetradic
#2F4EB1 #B12F8F #B1922F #2FB151
square
#2F4EB1 #B12F8F #B1922F #2FB151
split-complementary
#2F4EB1 #B1512F #8FB12F
monochromatic
#152350 #223981 #2F4EB1 #4D6CD0 #7E94DD

Accessibility & contrast

On white

7.38
#2F4EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2F4EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EB1
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EB1#FFFFFF#000000##FFFFFF
##2F4EB11.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB4
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4eb1;
/* rgb */ color: rgb(47, 78, 177);
/* oklch */ color: oklch(46.1% 0.162 266.7);
Tailwind
colors: {
  custom: {
    50: '#797fc9',
    500: '#2f4eb1',
    950: '#000000',
  },
}
SCSS
$custom: #2f4eb1;
$custom-light: #797fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4eb1",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 177
  },
  "hsl": {
    "h": 225.692,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46063,
    "c": 0.16185,
    "h": 266.7
  },
  "luminance": 0.09227
}

Semantic roles & 50–950 ramp

primary
#2F4EB1
secondary
#C5B376
accent
#BC47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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