#2F479F#2F479F

#2F479F is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.2% C 0.146 H 268.2°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#2F479F
RGBrgb(47, 71, 159)
HSLhsl(227, 54%, 40%)
HSVhsv(227, 70%, 62%)
CMYKcmyk(70.4%, 55.3%, 0%, 37.6%)
CIE-LABlab(33.16, 21.60, -50.59)
CIE-LCHlch(33.16, 55.01, 293.12°)
OKLaboklab(43.19% -0.0046 -0.1456)
OKLCHoklch(43.19% 0.146 268.2)
XYZxyz(9.6814, 7.6131, 33.7534)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F479F #9F872F
analogous
#2F7F9F #2F479F #4F2F9F
triadic
#2F479F #9F2F47 #479F2F
tetradic
#2F479F #9F2F7F #9F872F #2F9F4F
square
#2F479F #9F2F7F #9F872F #2F9F4F
split-complementary
#2F479F #9F4F2F #7F9F2F
monochromatic
#131D41 #213270 #2F479F #4460C8 #7388D6

Accessibility & contrast

On white

8.32
#2F479F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F479F
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F479F#FFFFFF#000000##FFFFFF
##2F479F1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f479f;
/* rgb */ color: rgb(47, 71, 159);
/* oklch */ color: oklch(43.2% 0.146 268.2);
Tailwind
colors: {
  custom: {
    50: '#7679bc',
    500: '#2f479f',
    950: '#000000',
  },
}
SCSS
$custom: #2f479f;
$custom-light: #7679bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f479f",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 159
  },
  "hsl": {
    "h": 227.143,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43188,
    "c": 0.14565,
    "h": 268.2
  },
  "luminance": 0.07614
}

Semantic roles & 50–950 ramp

primary
#2F479F
secondary
#BDAC6D
accent
#BE4ADE
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F479F

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

Preview Lab → · Contrast checker → · Palette generator →

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