#2F479E#2F479E

#2F479E is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.1% C 0.144 H 268.1°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#2F479E
RGBrgb(47, 71, 158)
HSLhsl(227, 54%, 40%)
HSVhsv(227, 70%, 62%)
CMYKcmyk(70.3%, 55.1%, 0%, 38%)
CIE-LABlab(33.09, 21.22, -50.11)
CIE-LCHlch(33.09, 54.42, 292.95°)
OKLaboklab(43.11% -0.0047 -0.1442)
OKLCHoklch(43.11% 0.144 268.1)
XYZxyz(9.5950, 7.5785, 33.2983)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F479E #9E862F
analogous
#2F7E9E #2F479E #4E2F9E
triadic
#2F479E #9E2F47 #479E2F
tetradic
#2F479E #9E2F7E #9E862F #2F9E4E
square
#2F479E #9E2F7E #9E862F #2F9E4E
split-complementary
#2F479E #9E4E2F #7E9E2F
monochromatic
#131D40 #21326F #2F479E #4360C7 #7288D5

Accessibility & contrast

On white

8.35
#2F479E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2F479E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F479E
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F479E#FFFFFF#000000##FFFFFF
##2F479E1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0253A1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f479e;
/* rgb */ color: rgb(47, 71, 158);
/* oklch */ color: oklch(43.1% 0.144 268.1);
Tailwind
colors: {
  custom: {
    50: '#7679bb',
    500: '#2f479e',
    950: '#000000',
  },
}
SCSS
$custom: #2f479e;
$custom-light: #7679bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f479e",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 158
  },
  "hsl": {
    "h": 227.027,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43108,
    "c": 0.14424,
    "h": 268.1
  },
  "luminance": 0.07579
}

Semantic roles & 50–950 ramp

primary
#2F479E
secondary
#BDAB6C
accent
#BE4ADE
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2F479E

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

Preview Lab → · Contrast checker → · Palette generator →

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