#2F47A2#2F47A2

#2F47A2 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.4% C 0.150 H 268.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#2F47A2
RGBrgb(47, 71, 162)
HSLhsl(227, 55%, 41%)
HSVhsv(227, 71%, 64%)
CMYKcmyk(71%, 56.2%, 0%, 36.5%)
CIE-LABlab(33.39, 22.72, -52.03)
CIE-LCHlch(33.39, 56.78, 293.59°)
OKLaboklab(43.43% -0.0044 -0.1498)
OKLCHoklch(43.43% 0.15 268.3)
XYZxyz(9.9449, 7.7185, 35.1411)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47A2 #A28A2F
analogous
#2F80A2 #2F47A2 #502FA2
triadic
#2F47A2 #A22F47 #47A22F
tetradic
#2F47A2 #A22F80 #A28A2F #2FA250
square
#2F47A2 #A22F80 #A28A2F #2FA250
split-complementary
#2F47A2 #A2502F #80A22F
monochromatic
#131D43 #213273 #2F47A2 #4561C9 #7589D7

Accessibility & contrast

On white

8.26
#2F47A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2F47A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47A2
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47A2#FFFFFF#000000##FFFFFF
##2F47A21.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#005D6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f47a2;
/* rgb */ color: rgb(47, 71, 162);
/* oklch */ color: oklch(43.4% 0.150 268.3);
Tailwind
colors: {
  custom: {
    50: '#7779be',
    500: '#2f47a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f47a2;
$custom-light: #7779be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47a2",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 162
  },
  "hsl": {
    "h": 227.478,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43429,
    "c": 0.14988,
    "h": 268.3
  },
  "luminance": 0.07719
}

Semantic roles & 50–950 ramp

primary
#2F47A2
secondary
#BFAE6E
accent
#BF49DE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F47A2

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

Preview Lab → · Contrast checker → · Palette generator →

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