#2F4EB2#2F4EB2

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

Color values

HEX#2F4EB2
RGBrgb(47, 78, 178)
HSLhsl(226, 58%, 44%)
HSVhsv(226, 74%, 70%)
CMYKcmyk(73.6%, 56.2%, 0%, 30.2%)
CIE-LABlab(36.49, 24.08, -56.54)
CIE-LCHlch(36.49, 61.45, 293.07°)
OKLaboklab(46.14% -0.0092 -0.163)
OKLCHoklch(46.14% 0.163 266.8)
XYZxyz(11.9298, 9.2662, 43.2707)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EB2 #B2932F
analogous
#2F8FB2 #2F4EB2 #522FB2
triadic
#2F4EB2 #B22F4E #4EB22F
tetradic
#2F4EB2 #B22F8F #B2932F #2FB252
square
#2F4EB2 #B22F8F #B2932F #2FB252
split-complementary
#2F4EB2 #B2522F #8FB22F
monochromatic
#152451 #223982 #2F4EB2 #4E6DD0 #7E95DD

Accessibility & contrast

On white

7.36
#2F4EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2F4EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EB2
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EB2#FFFFFF#000000##FFFFFF
##2F4EB21.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4eb2;
/* rgb */ color: rgb(47, 78, 178);
/* oklch */ color: oklch(46.1% 0.163 266.8);
Tailwind
colors: {
  custom: {
    50: '#7a7fca',
    500: '#2f4eb2',
    950: '#000000',
  },
}
SCSS
$custom: #2f4eb2;
$custom-light: #7a7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4eb2",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 178
  },
  "hsl": {
    "h": 225.802,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46143,
    "c": 0.16322,
    "h": 266.8
  },
  "luminance": 0.09267
}

Semantic roles & 50–950 ramp

primary
#2F4EB2
secondary
#C6B377
accent
#BD46E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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