#2F47AA#2F47AA

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

Color values

HEX#2F47AA
RGBrgb(47, 71, 170)
HSLhsl(228, 57%, 43%)
HSVhsv(228, 72%, 67%)
CMYKcmyk(72.4%, 58.2%, 0%, 33.3%)
CIE-LABlab(34.01, 25.72, -55.82)
CIE-LCHlch(34.01, 61.46, 294.73°)
OKLaboklab(44.09% -0.0041 -0.161)
OKLCHoklch(44.09% 0.161 268.5)
XYZxyz(10.6787, 8.0120, 39.0061)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47AA #AA922F
analogous
#2F84AA #2F47AA #552FAA
triadic
#2F47AA #AA2F47 #47AA2F
tetradic
#2F47AA #AA2F84 #AA922F #2FAA55
square
#2F47AA #AA2F84 #AA922F #2FAA55
split-complementary
#2F47AA #AA552F #84AA2F
monochromatic
#141F4A #22337A #2F47AA #4963CD #798CDA

Accessibility & contrast

On white

8.07
#2F47AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F47AA
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47AA#FFFFFF#000000##FFFFFF
##2F47AA1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#006071
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f47aa;
/* rgb */ color: rgb(47, 71, 170);
/* oklch */ color: oklch(44.1% 0.161 268.5);
Tailwind
colors: {
  custom: {
    50: '#7879c4',
    500: '#2f47aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f47aa;
$custom-light: #7879c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47aa",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 170
  },
  "hsl": {
    "h": 228.293,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44087,
    "c": 0.16101,
    "h": 268.5
  },
  "luminance": 0.08013
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F47AA

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

Preview Lab → · Contrast checker → · Palette generator →

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