#2F4CB3#2F4CB3

#2F4CB3 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.167 H 267.4°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#2F4CB3
RGBrgb(47, 76, 179)
HSLhsl(227, 58%, 44%)
HSVhsv(227, 74%, 70%)
CMYKcmyk(73.7%, 57.5%, 0%, 29.8%)
CIE-LABlab(36.04, 25.78, -57.87)
CIE-LCHlch(36.04, 63.35, 294.01°)
OKLaboklab(45.83% -0.0076 -0.1669)
OKLCHoklch(45.83% 0.167 267.4)
XYZxyz(11.8906, 9.0266, 43.7547)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CB3 #B3962F
analogous
#2F8EB3 #2F4CB3 #542FB3
triadic
#2F4CB3 #B32F4C #4CB32F
tetradic
#2F4CB3 #B32F8E #B3962F #2FB354
square
#2F4CB3 #B32F8E #B3962F #2FB354
split-complementary
#2F4CB3 #B3542F #8EB32F
monochromatic
#162352 #223783 #2F4CB3 #4F6BD1 #7F94DD

Accessibility & contrast

On white

7.49
#2F4CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2F4CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4CB3
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CB3#FFFFFF#000000##FFFFFF
##2F4CB31.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4cb3;
/* rgb */ color: rgb(47, 76, 179);
/* oklch */ color: oklch(45.8% 0.167 267.4);
Tailwind
colors: {
  custom: {
    50: '#7a7dcb',
    500: '#2f4cb3',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cb3;
$custom-light: #7a7dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cb3",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 179
  },
  "hsl": {
    "h": 226.818,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45825,
    "c": 0.16708,
    "h": 267.4
  },
  "luminance": 0.09028
}

Semantic roles & 50–950 ramp

primary
#2F4CB3
secondary
#C6B578
accent
#BF46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F4CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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