#2F47B2#2F47B2

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

Color values

HEX#2F47B2
RGBrgb(47, 71, 178)
HSLhsl(229, 58%, 44%)
HSVhsv(229, 74%, 70%)
CMYKcmyk(73.6%, 60.1%, 0%, 30.2%)
CIE-LABlab(34.65, 28.69, -59.54)
CIE-LCHlch(34.65, 66.09, 295.73°)
OKLaboklab(44.77% -0.0039 -0.1719)
OKLCHoklch(44.77% 0.172 268.7)
XYZxyz(11.4586, 8.3240, 43.1136)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F47B2 #B29A2F
analogous
#2F89B2 #2F47B2 #592FB2
triadic
#2F47B2 #B22F47 #47B22F
tetradic
#2F47B2 #B22F89 #B29A2F #2FB259
square
#2F47B2 #B22F89 #B29A2F #2FB259
split-complementary
#2F47B2 #B2592F #89B22F
monochromatic
#152051 #223482 #2F47B2 #4E66D0 #7E90DD

Accessibility & contrast

On white

7.88
#2F47B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2F47B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F47B2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F47B2#FFFFFF#000000##FFFFFF
##2F47B21.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#006275
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f47b2;
/* rgb */ color: rgb(47, 71, 178);
/* oklch */ color: oklch(44.8% 0.172 268.7);
Tailwind
colors: {
  custom: {
    50: '#7a7aca',
    500: '#2f47b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f47b2;
$custom-light: #7a7aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f47b2",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 178
  },
  "hsl": {
    "h": 229.008,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44765,
    "c": 0.17192,
    "h": 268.7
  },
  "luminance": 0.08325
}

Semantic roles & 50–950 ramp

primary
#2F47B2
secondary
#C6B777
accent
#C546E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F47B2

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

Preview Lab → · Contrast checker → · Palette generator →

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