#2F47B8#2F47B8

#2F47B8 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.3% C 0.180 H 268.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#2F47B8
RGBrgb(47, 71, 184)
HSLhsl(229, 59%, 45%)
HSVhsv(229, 74%, 72%)
CMYKcmyk(74.5%, 61.4%, 0%, 27.8%)
CIE-LABlab(35.14, 30.90, -62.28)
CIE-LCHlch(35.14, 69.53, 296.39°)
OKLaboklab(45.29% -0.004 -0.1799)
OKLCHoklch(45.29% 0.18 268.7)
XYZxyz(12.0743, 8.5702, 46.3560)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47B8 #B8A02F
analogous
#2F8BB8 #2F47B8 #5B2FB8
triadic
#2F47B8 #B82F47 #47B82F
tetradic
#2F47B8 #B82F8B #B8A02F #2FB85B
square
#2F47B8 #B82F8B #B8A02F #2FB85B
split-complementary
#2F47B8 #B85B2F #8BB82F
monochromatic
#162157 #233487 #2F47B8 #5268D3 #8293DF

Accessibility & contrast

On white

7.74
#2F47B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2F47B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47B8
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47B8#FFFFFF#000000##FFFFFF
##2F47B81.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BC
Deuteranopia (green-blind)
#004CB6
Tritanopia (blue-blind)
#006478
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f47b8;
/* rgb */ color: rgb(47, 71, 184);
/* oklch */ color: oklch(45.3% 0.180 268.7);
Tailwind
colors: {
  custom: {
    50: '#7c7ace',
    500: '#2f47b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f47b8;
$custom-light: #7c7ace;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47b8",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 184
  },
  "hsl": {
    "h": 229.489,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45286,
    "c": 0.17996,
    "h": 268.7
  },
  "luminance": 0.08572
}

Semantic roles & 50–950 ramp

primary
#2F47B8
secondary
#C8BB7B
accent
#C745E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F47B8

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

Preview Lab → · Contrast checker → · Palette generator →

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