#2F47A8#2F47A8

#2F47A8 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.9% C 0.158 H 268.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#2F47A8
RGBrgb(47, 71, 168)
HSLhsl(228, 56%, 42%)
HSVhsv(228, 72%, 66%)
CMYKcmyk(72%, 57.7%, 0%, 34.1%)
CIE-LABlab(33.85, 24.97, -54.88)
CIE-LCHlch(33.85, 60.30, 294.46°)
OKLaboklab(43.92% -0.0041 -0.1582)
OKLCHoklch(43.92% 0.158 268.5)
XYZxyz(10.4910, 7.9369, 38.0173)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47A8 #A8902F
analogous
#2F84A8 #2F47A8 #532FA8
triadic
#2F47A8 #A82F47 #47A82F
tetradic
#2F47A8 #A82F84 #A8902F #2FA853
square
#2F47A8 #A82F84 #A8902F #2FA853
split-complementary
#2F47A8 #A8532F #84A82F
monochromatic
#141F48 #223378 #2F47A8 #4862CC #788BD9

Accessibility & contrast

On white

8.12
#2F47A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F47A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47A8
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47A8#FFFFFF#000000##FFFFFF
##2F47A81.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#005F70
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f47a8;
/* rgb */ color: rgb(47, 71, 168);
/* oklch */ color: oklch(43.9% 0.158 268.5);
Tailwind
colors: {
  custom: {
    50: '#7879c3',
    500: '#2f47a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f47a8;
$custom-light: #7879c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47a8",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 168
  },
  "hsl": {
    "h": 228.099,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4392,
    "c": 0.15825,
    "h": 268.5
  },
  "luminance": 0.07938
}

Semantic roles & 50–950 ramp

primary
#2F47A8
secondary
#C1B271
accent
#C248E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F47A8

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

Preview Lab → · Contrast checker → · Palette generator →

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