#2F4AB3#2F4AB3

#2F4AB3 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.170 H 267.9°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#2F4AB3
RGBrgb(47, 74, 179)
HSLhsl(228, 58%, 44%)
HSVhsv(228, 74%, 70%)
CMYKcmyk(73.7%, 58.7%, 0%, 29.8%)
CIE-LABlab(35.51, 27.09, -58.73)
CIE-LCHlch(35.51, 64.68, 294.76°)
OKLaboklab(45.43% -0.0061 -0.1695)
OKLCHoklch(45.43% 0.17 267.9)
XYZxyz(11.7549, 8.7553, 43.7095)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AB3 #B3982F
analogous
#2F8CB3 #2F4AB3 #562FB3
triadic
#2F4AB3 #B32F4A #4AB32F
tetradic
#2F4AB3 #B32F8C #B3982F #2FB356
square
#2F4AB3 #B32F8C #B3982F #2FB356
split-complementary
#2F4AB3 #B3562F #8CB32F
monochromatic
#162252 #223683 #2F4AB3 #4F69D1 #7F92DD

Accessibility & contrast

On white

7.63
#2F4AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2F4AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AB3
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AB3#FFFFFF#000000##FFFFFF
##2F4AB31.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB7
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#006477
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4ab3;
/* rgb */ color: rgb(47, 74, 179);
/* oklch */ color: oklch(45.4% 0.170 267.9);
Tailwind
colors: {
  custom: {
    50: '#7a7ccb',
    500: '#2f4ab3',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ab3;
$custom-light: #7a7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ab3",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 179
  },
  "hsl": {
    "h": 227.727,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45431,
    "c": 0.16957,
    "h": 267.9
  },
  "luminance": 0.08757
}

Semantic roles & 50–950 ramp

primary
#2F4AB3
secondary
#C6B678
accent
#C246E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F4AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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