#2F47B1#2F47B1

#2F47B1 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.7% C 0.171 H 268.7°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#2F47B1
RGBrgb(47, 71, 177)
HSLhsl(229, 58%, 44%)
HSVhsv(229, 73%, 69%)
CMYKcmyk(73.4%, 59.9%, 0%, 30.6%)
CIE-LABlab(34.57, 28.32, -59.08)
CIE-LCHlch(34.57, 65.52, 295.61°)
OKLaboklab(44.68% -0.004 -0.1705)
OKLCHoklch(44.68% 0.171 268.7)
XYZxyz(11.3586, 8.2839, 42.5868)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47B1 #B1992F
analogous
#2F88B1 #2F47B1 #582FB1
triadic
#2F47B1 #B12F47 #47B12F
tetradic
#2F47B1 #B12F88 #B1992F #2FB158
square
#2F47B1 #B12F88 #B1992F #2FB158
split-complementary
#2F47B1 #B1582F #88B12F
monochromatic
#152050 #223481 #2F47B1 #4D65D0 #7E8FDD

Accessibility & contrast

On white

7.90
#2F47B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2F47B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47B1
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47B1#FFFFFF#000000##FFFFFF
##2F47B11.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B5
Deuteranopia (green-blind)
#004BAF
Tritanopia (blue-blind)
#006275
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f47b1;
/* rgb */ color: rgb(47, 71, 177);
/* oklch */ color: oklch(44.7% 0.171 268.7);
Tailwind
colors: {
  custom: {
    50: '#7a7ac9',
    500: '#2f47b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f47b1;
$custom-light: #7a7ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47b1",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 177
  },
  "hsl": {
    "h": 228.923,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44679,
    "c": 0.17057,
    "h": 268.7
  },
  "luminance": 0.08285
}

Semantic roles & 50–950 ramp

primary
#2F47B1
secondary
#C5B776
accent
#C547E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F47B1

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

Preview Lab → · Contrast checker → · Palette generator →

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