#2F47B4#2F47B4

#2F47B4 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.9% C 0.175 H 268.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#2F47B4
RGBrgb(47, 71, 180)
HSLhsl(229, 59%, 45%)
HSVhsv(229, 74%, 71%)
CMYKcmyk(73.9%, 60.6%, 0%, 29.4%)
CIE-LABlab(34.81, 29.43, -60.46)
CIE-LCHlch(34.81, 67.24, 295.96°)
OKLaboklab(44.94% -0.0039 -0.1746)
OKLCHoklch(44.94% 0.175 268.7)
XYZxyz(11.6609, 8.4049, 44.1789)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47B4 #B49C2F
analogous
#2F8AB4 #2F47B4 #5A2FB4
triadic
#2F47B4 #B42F47 #47B42F
tetradic
#2F47B4 #B42F8A #B49C2F #2FB45A
square
#2F47B4 #B42F8A #B49C2F #2FB45A
split-complementary
#2F47B4 #B45A2F #8AB42F
monochromatic
#162153 #223483 #2F47B4 #4F67D1 #8091DE

Accessibility & contrast

On white

7.83
#2F47B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2F47B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47B4
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47B4#FFFFFF#000000##FFFFFF
##2F47B41.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B8
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#006376
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f47b4;
/* rgb */ color: rgb(47, 71, 180);
/* oklch */ color: oklch(44.9% 0.175 268.7);
Tailwind
colors: {
  custom: {
    50: '#7b7acb',
    500: '#2f47b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f47b4;
$custom-light: #7b7acb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47b4",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 180
  },
  "hsl": {
    "h": 229.173,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44937,
    "c": 0.17461,
    "h": 268.7
  },
  "luminance": 0.08406
}

Semantic roles & 50–950 ramp

primary
#2F47B4
secondary
#C7B878
accent
#C646E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F47B4

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

Preview Lab → · Contrast checker → · Palette generator →

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