#2F47A6#2F47A6

#2F47A6 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.8% C 0.155 H 268.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2F47A6
RGBrgb(47, 71, 166)
HSLhsl(228, 56%, 42%)
HSVhsv(228, 72%, 65%)
CMYKcmyk(71.7%, 57.2%, 0%, 34.9%)
CIE-LABlab(33.70, 24.22, -53.94)
CIE-LCHlch(33.70, 59.13, 294.18°)
OKLaboklab(43.76% -0.0042 -0.1554)
OKLCHoklch(43.76% 0.155 268.4)
XYZxyz(10.3061, 7.8629, 37.0436)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47A6 #A68E2F
analogous
#2F83A6 #2F47A6 #532FA6
triadic
#2F47A6 #A62F47 #47A62F
tetradic
#2F47A6 #A62F83 #A68E2F #2FA653
square
#2F47A6 #A62F83 #A68E2F #2FA653
split-complementary
#2F47A6 #A6532F #83A62F
monochromatic
#141E47 #213376 #2F47A6 #4762CB #778BD8

Accessibility & contrast

On white

8.16
#2F47A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F47A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47A6
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47A6#FFFFFF#000000##FFFFFF
##2F47A61.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f47a6;
/* rgb */ color: rgb(47, 71, 166);
/* oklch */ color: oklch(43.8% 0.155 268.4);
Tailwind
colors: {
  custom: {
    50: '#7779c1',
    500: '#2f47a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f47a6;
$custom-light: #7779c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47a6",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 166
  },
  "hsl": {
    "h": 227.899,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43755,
    "c": 0.15548,
    "h": 268.4
  },
  "luminance": 0.07864
}

Semantic roles & 50–950 ramp

primary
#2F47A6
secondary
#C1B070
accent
#C149DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F47A6

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

Preview Lab → · Contrast checker → · Palette generator →

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