#2F4EB3#2F4EB3

#2F4EB3 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.2% C 0.165 H 266.8°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#2F4EB3
RGBrgb(47, 78, 179)
HSLhsl(226, 58%, 44%)
HSVhsv(226, 74%, 70%)
CMYKcmyk(73.7%, 56.4%, 0%, 29.8%)
CIE-LABlab(36.57, 24.46, -57.01)
CIE-LCHlch(36.57, 62.03, 293.22°)
OKLaboklab(46.22% -0.0091 -0.1643)
OKLCHoklch(46.22% 0.165 266.8)
XYZxyz(12.0305, 9.3065, 43.8014)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EB3 #B3942F
analogous
#2F90B3 #2F4EB3 #522FB3
triadic
#2F4EB3 #B32F4E #4EB32F
tetradic
#2F4EB3 #B32F90 #B3942F #2FB352
square
#2F4EB3 #B32F90 #B3942F #2FB352
split-complementary
#2F4EB3 #B3522F #90B32F
monochromatic
#162452 #223983 #2F4EB3 #4F6DD1 #7F95DD

Accessibility & contrast

On white

7.34
#2F4EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2F4EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EB3
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EB3#FFFFFF#000000##FFFFFF
##2F4EB31.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4eb3;
/* rgb */ color: rgb(47, 78, 179);
/* oklch */ color: oklch(46.2% 0.165 266.8);
Tailwind
colors: {
  custom: {
    50: '#7a7fca',
    500: '#2f4eb3',
    950: '#000000',
  },
}
SCSS
$custom: #2f4eb3;
$custom-light: #7a7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4eb3",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 179
  },
  "hsl": {
    "h": 225.909,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46224,
    "c": 0.16459,
    "h": 266.8
  },
  "luminance": 0.09308
}

Semantic roles & 50–950 ramp

primary
#2F4EB3
secondary
#C6B478
accent
#BD46E2
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2F4EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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