#2F47AC#2F47AC

#2F47AC is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.3% C 0.164 H 268.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#2F47AC
RGBrgb(47, 71, 172)
HSLhsl(228, 57%, 43%)
HSVhsv(228, 73%, 67%)
CMYKcmyk(72.7%, 58.7%, 0%, 32.5%)
CIE-LABlab(34.17, 26.46, -56.76)
CIE-LCHlch(34.17, 62.62, 295.00°)
OKLaboklab(44.25% -0.004 -0.1637)
OKLCHoklch(44.25% 0.164 268.6)
XYZxyz(10.8694, 8.0882, 40.0101)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47AC #AC942F
analogous
#2F85AC #2F47AC #552FAC
triadic
#2F47AC #AC2F47 #47AC2F
tetradic
#2F47AC #AC2F85 #AC942F #2FAC55
square
#2F47AC #AC2F85 #AC942F #2FAC55
split-complementary
#2F47AC #AC552F #85AC2F
monochromatic
#151F4C #22337C #2F47AC #4B64CE #7B8DDB

Accessibility & contrast

On white

8.02
#2F47AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2F47AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47AC
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47AC#FFFFFF#000000##FFFFFF
##2F47AC1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#006072
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f47ac;
/* rgb */ color: rgb(47, 71, 172);
/* oklch */ color: oklch(44.3% 0.164 268.6);
Tailwind
colors: {
  custom: {
    50: '#7979c6',
    500: '#2f47ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f47ac;
$custom-light: #7979c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47ac",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 172
  },
  "hsl": {
    "h": 228.48,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44254,
    "c": 0.16376,
    "h": 268.6
  },
  "luminance": 0.08089
}

Semantic roles & 50–950 ramp

primary
#2F47AC
secondary
#C3B474
accent
#C347E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F47AC

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

Preview Lab → · Contrast checker → · Palette generator →

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