#2F4CB2#2F4CB2

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

Color values

HEX#2F4CB2
RGBrgb(47, 76, 178)
HSLhsl(227, 58%, 44%)
HSVhsv(227, 74%, 70%)
CMYKcmyk(73.6%, 57.3%, 0%, 30.2%)
CIE-LABlab(35.96, 25.40, -57.41)
CIE-LCHlch(35.96, 62.78, 293.87°)
OKLaboklab(45.74% -0.0077 -0.1655)
OKLCHoklch(45.74% 0.166 267.4)
XYZxyz(11.7898, 8.9863, 43.2240)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CB2 #B2952F
analogous
#2F8EB2 #2F4CB2 #542FB2
triadic
#2F4CB2 #B22F4C #4CB22F
tetradic
#2F4CB2 #B22F8E #B2952F #2FB254
square
#2F4CB2 #B22F8E #B2952F #2FB254
split-complementary
#2F4CB2 #B2542F #8EB22F
monochromatic
#152351 #223782 #2F4CB2 #4E6BD0 #7E93DD

Accessibility & contrast

On white

7.51
#2F4CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2F4CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4CB2
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CB2#FFFFFF#000000##FFFFFF
##2F4CB21.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4cb2;
/* rgb */ color: rgb(47, 76, 178);
/* oklch */ color: oklch(45.7% 0.166 267.4);
Tailwind
colors: {
  custom: {
    50: '#7a7dca',
    500: '#2f4cb2',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cb2;
$custom-light: #7a7dca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cb2",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 226.718,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45742,
    "c": 0.16572,
    "h": 267.4
  },
  "luminance": 0.08988
}

Semantic roles & 50–950 ramp

primary
#2F4CB2
secondary
#C6B477
accent
#BF46E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F4CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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