#2F47A3#2F47A3

#2F47A3 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.5% C 0.151 H 268.3°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#2F47A3
RGBrgb(47, 71, 163)
HSLhsl(228, 55%, 41%)
HSVhsv(228, 71%, 64%)
CMYKcmyk(71.2%, 56.4%, 0%, 36.1%)
CIE-LABlab(33.47, 23.10, -52.51)
CIE-LCHlch(33.47, 57.37, 293.74°)
OKLaboklab(43.51% -0.0044 -0.1512)
OKLCHoklch(43.51% 0.151 268.3)
XYZxyz(10.0341, 7.7541, 35.6111)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47A3 #A38B2F
analogous
#2F81A3 #2F47A3 #512FA3
triadic
#2F47A3 #A32F47 #47A32F
tetradic
#2F47A3 #A32F81 #A38B2F #2FA351
square
#2F47A3 #A32F81 #A38B2F #2FA351
split-complementary
#2F47A3 #A3512F #81A32F
monochromatic
#141E44 #213273 #2F47A3 #4661CA #7589D7

Accessibility & contrast

On white

8.23
#2F47A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2F47A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47A3
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47A3#FFFFFF#000000##FFFFFF
##2F47A31.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A6
Deuteranopia (green-blind)
#004AA1
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f47a3;
/* rgb */ color: rgb(47, 71, 163);
/* oklch */ color: oklch(43.5% 0.151 268.3);
Tailwind
colors: {
  custom: {
    50: '#7779bf',
    500: '#2f47a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f47a3;
$custom-light: #7779bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47a3",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 163
  },
  "hsl": {
    "h": 227.586,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4351,
    "c": 0.15128,
    "h": 268.3
  },
  "luminance": 0.07755
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F47A3

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

Preview Lab → · Contrast checker → · Palette generator →

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