#2F47A4#2F47A4

#2F47A4 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.6% C 0.153 H 268.4°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2F47A4
RGBrgb(47, 71, 164)
HSLhsl(228, 55%, 41%)
HSVhsv(228, 71%, 64%)
CMYKcmyk(71.3%, 56.7%, 0%, 35.7%)
CIE-LABlab(33.54, 23.47, -52.99)
CIE-LCHlch(33.54, 57.95, 293.89°)
OKLaboklab(43.59% -0.0043 -0.1526)
OKLCHoklch(43.59% 0.153 268.4)
XYZxyz(10.1241, 7.7901, 36.0849)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47A4 #A48C2F
analogous
#2F82A4 #2F47A4 #522FA4
triadic
#2F47A4 #A42F47 #47A42F
tetradic
#2F47A4 #A42F82 #A48C2F #2FA452
square
#2F47A4 #A42F82 #A48C2F #2FA452
split-complementary
#2F47A4 #A4522F #82A42F
monochromatic
#141E45 #213274 #2F47A4 #4661CA #768AD8

Accessibility & contrast

On white

8.21
#2F47A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F47A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47A4
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47A4#FFFFFF#000000##FFFFFF
##2F47A41.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#005E6E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f47a4;
/* rgb */ color: rgb(47, 71, 164);
/* oklch */ color: oklch(43.6% 0.153 268.4);
Tailwind
colors: {
  custom: {
    50: '#7779c0',
    500: '#2f47a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f47a4;
$custom-light: #7779c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47a4",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 164
  },
  "hsl": {
    "h": 227.692,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43591,
    "c": 0.15269,
    "h": 268.4
  },
  "luminance": 0.07791
}

Semantic roles & 50–950 ramp

primary
#2F47A4
secondary
#C0AF6F
accent
#C049DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F47A4

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

Preview Lab → · Contrast checker → · Palette generator →

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