#2F47B3#2F47B3

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

Color values

HEX#2F47B3
RGBrgb(47, 71, 179)
HSLhsl(229, 58%, 44%)
HSVhsv(229, 74%, 70%)
CMYKcmyk(73.7%, 60.3%, 0%, 29.8%)
CIE-LABlab(34.73, 29.06, -60.00)
CIE-LCHlch(34.73, 66.66, 295.84°)
OKLaboklab(44.85% -0.0039 -0.1732)
OKLCHoklch(44.85% 0.173 268.7)
XYZxyz(11.5594, 8.3643, 43.6443)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47B3 #B39B2F
analogous
#2F89B3 #2F47B3 #592FB3
triadic
#2F47B3 #B32F47 #47B32F
tetradic
#2F47B3 #B32F89 #B39B2F #2FB359
square
#2F47B3 #B32F89 #B39B2F #2FB359
split-complementary
#2F47B3 #B3592F #89B32F
monochromatic
#162152 #223483 #2F47B3 #4F66D1 #7F90DD

Accessibility & contrast

On white

7.86
#2F47B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2F47B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47B3
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47B3#FFFFFF#000000##FFFFFF
##2F47B31.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B7
Deuteranopia (green-blind)
#004CB1
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f47b3;
/* rgb */ color: rgb(47, 71, 179);
/* oklch */ color: oklch(44.9% 0.173 268.7);
Tailwind
colors: {
  custom: {
    50: '#7a7acb',
    500: '#2f47b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f47b3;
$custom-light: #7a7acb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47b3",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 179
  },
  "hsl": {
    "h": 229.091,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44851,
    "c": 0.17326,
    "h": 268.7
  },
  "luminance": 0.08365
}

Semantic roles & 50–950 ramp

primary
#2F47B3
secondary
#C6B878
accent
#C546E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F47B3

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

Preview Lab → · Contrast checker → · Palette generator →

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