#2F4AB1#2F4AB1

#2F4AB1 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.167 H 267.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#2F4AB1
RGBrgb(47, 74, 177)
HSLhsl(228, 58%, 44%)
HSVhsv(228, 73%, 69%)
CMYKcmyk(73.4%, 58.2%, 0%, 30.6%)
CIE-LABlab(35.35, 26.35, -57.80)
CIE-LCHlch(35.35, 63.52, 294.50°)
OKLaboklab(45.26% -0.0062 -0.1667)
OKLCHoklch(45.26% 0.167 267.9)
XYZxyz(11.5541, 8.6750, 42.6520)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AB1 #B1962F
analogous
#2F8BB1 #2F4AB1 #552FB1
triadic
#2F4AB1 #B12F4A #4AB12F
tetradic
#2F4AB1 #B12F8B #B1962F #2FB155
square
#2F4AB1 #B12F8B #B1962F #2FB155
split-complementary
#2F4AB1 #B1552F #8BB12F
monochromatic
#152250 #223681 #2F4AB1 #4D68D0 #7E91DD

Accessibility & contrast

On white

7.68
#2F4AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2F4AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AB1
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AB1#FFFFFF#000000##FFFFFF
##2F4AB11.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B4
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4ab1;
/* rgb */ color: rgb(47, 74, 177);
/* oklch */ color: oklch(45.3% 0.167 267.9);
Tailwind
colors: {
  custom: {
    50: '#7a7cc9',
    500: '#2f4ab1',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ab1;
$custom-light: #7a7cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ab1",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 177
  },
  "hsl": {
    "h": 227.538,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45263,
    "c": 0.16684,
    "h": 267.9
  },
  "luminance": 0.08676
}

Semantic roles & 50–950 ramp

primary
#2F4AB1
secondary
#C5B576
accent
#C147E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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