#2F47B9#2F47B9

#2F47B9 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.4% C 0.181 H 268.7°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#2F47B9
RGBrgb(47, 71, 185)
HSLhsl(230, 59%, 45%)
HSVhsv(230, 75%, 73%)
CMYKcmyk(74.6%, 61.6%, 0%, 27.5%)
CIE-LABlab(35.23, 31.27, -62.73)
CIE-LCHlch(35.23, 70.09, 296.50°)
OKLaboklab(45.37% -0.004 -0.1812)
OKLCHoklch(45.37% 0.181 268.7)
XYZxyz(12.1795, 8.6123, 46.9100)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47B9 #B9A12F
analogous
#2F8CB9 #2F47B9 #5C2FB9
triadic
#2F47B9 #B92F47 #47B92F
tetradic
#2F47B9 #B92F8C #B9A12F #2FB95C
square
#2F47B9 #B92F8C #B9A12F #2FB95C
split-complementary
#2F47B9 #B95C2F #8CB92F
monochromatic
#162257 #233488 #2F47B9 #5269D3 #8393DF

Accessibility & contrast

On white

7.71
#2F47B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2F47B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47B9
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47B9#FFFFFF#000000##FFFFFF
##2F47B91.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BD
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#006479
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f47b9;
/* rgb */ color: rgb(47, 71, 185);
/* oklch */ color: oklch(45.4% 0.181 268.7);
Tailwind
colors: {
  custom: {
    50: '#7c7acf',
    500: '#2f47b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f47b9;
$custom-light: #7c7acf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47b9",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 185
  },
  "hsl": {
    "h": 229.565,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45374,
    "c": 0.18128,
    "h": 268.7
  },
  "luminance": 0.08614
}

Semantic roles & 50–950 ramp

primary
#2F47B9
secondary
#C9BB7B
accent
#C745E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F47B9

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

Preview Lab → · Contrast checker → · Palette generator →

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