#2F47A9#2F47A9

#2F47A9 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.0% C 0.160 H 268.5°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#2F47A9
RGBrgb(47, 71, 169)
HSLhsl(228, 56%, 42%)
HSVhsv(228, 72%, 66%)
CMYKcmyk(72.2%, 58%, 0%, 33.7%)
CIE-LABlab(33.93, 25.34, -55.35)
CIE-LCHlch(33.93, 60.88, 294.60°)
OKLaboklab(44% -0.0041 -0.1596)
OKLCHoklch(44% 0.16 268.5)
XYZxyz(10.5845, 7.9743, 38.5098)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47A9 #A9912F
analogous
#2F84A9 #2F47A9 #542FA9
triadic
#2F47A9 #A92F47 #47A92F
tetradic
#2F47A9 #A92F84 #A9912F #2FA954
square
#2F47A9 #A92F84 #A9912F #2FA954
split-complementary
#2F47A9 #A9542F #84A92F
monochromatic
#141F49 #223379 #2F47A9 #4963CC #798CDA

Accessibility & contrast

On white

8.09
#2F47A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2F47A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47A9
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47A9#FFFFFF#000000##FFFFFF
##2F47A91.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AC
Deuteranopia (green-blind)
#004AA7
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f47a9;
/* rgb */ color: rgb(47, 71, 169);
/* oklch */ color: oklch(44.0% 0.160 268.5);
Tailwind
colors: {
  custom: {
    50: '#7879c3',
    500: '#2f47a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f47a9;
$custom-light: #7879c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47a9",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 169
  },
  "hsl": {
    "h": 228.197,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44003,
    "c": 0.15963,
    "h": 268.5
  },
  "luminance": 0.07975
}

Semantic roles & 50–950 ramp

primary
#2F47A9
secondary
#C2B272
accent
#C248E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F47A9

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

Preview Lab → · Contrast checker → · Palette generator →

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