#2F4BB1#2F4BB1

#2F4BB1 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.166 H 267.6°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#2F4BB1
RGBrgb(47, 75, 177)
HSLhsl(227, 58%, 44%)
HSVhsv(227, 73%, 69%)
CMYKcmyk(73.4%, 57.6%, 0%, 30.6%)
CIE-LABlab(35.62, 25.69, -57.37)
CIE-LCHlch(35.62, 62.86, 294.12°)
OKLaboklab(45.46% -0.0069 -0.1655)
OKLCHoklch(45.46% 0.166 267.6)
XYZxyz(11.6214, 8.8096, 42.6744)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4BB1 #B1952F
analogous
#2F8CB1 #2F4BB1 #542FB1
triadic
#2F4BB1 #B12F4B #4BB12F
tetradic
#2F4BB1 #B12F8C #B1952F #2FB154
square
#2F4BB1 #B12F8C #B1952F #2FB154
split-complementary
#2F4BB1 #B1542F #8CB12F
monochromatic
#152250 #223781 #2F4BB1 #4D69D0 #7E92DD

Accessibility & contrast

On white

7.60
#2F4BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2F4BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4BB1
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4BB1#FFFFFF#000000##FFFFFF
##2F4BB11.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4bb1;
/* rgb */ color: rgb(47, 75, 177);
/* oklch */ color: oklch(45.5% 0.166 267.6);
Tailwind
colors: {
  custom: {
    50: '#7a7cc9',
    500: '#2f4bb1',
    950: '#000000',
  },
}
SCSS
$custom: #2f4bb1;
$custom-light: #7a7cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4bb1",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 227.077,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45461,
    "c": 0.16561,
    "h": 267.6
  },
  "luminance": 0.08811
}

Semantic roles & 50–950 ramp

primary
#2F4BB1
secondary
#C5B476
accent
#C047E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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