#2F479A#2F479A

#2F479A is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.8% C 0.139 H 267.9°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#2F479A
RGBrgb(47, 71, 154)
HSLhsl(227, 53%, 39%)
HSVhsv(227, 69%, 60%)
CMYKcmyk(69.5%, 53.9%, 0%, 39.6%)
CIE-LABlab(32.79, 19.72, -48.17)
CIE-LCHlch(32.79, 52.05, 292.26°)
OKLaboklab(42.79% -0.005 -0.1384)
OKLCHoklch(42.79% 0.139 267.9)
XYZxyz(9.2563, 7.4430, 31.5144)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F479A #9A822F
analogous
#2F7D9A #2F479A #4D2F9A
triadic
#2F479A #9A2F47 #479A2F
tetradic
#2F479A #9A2F7D #9A822F #2F9A4D
square
#2F479A #9A2F7D #9A822F #2F9A4D
split-complementary
#2F479A #9A4D2F #7D9A2F
monochromatic
#121C3C #21316B #2F479A #415FC5 #7086D3

Accessibility & contrast

On white

8.44
#2F479A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2F479A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F479A
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F479A#FFFFFF#000000##FFFFFF
##2F479A1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E529D
Deuteranopia (green-blind)
#004898
Tritanopia (blue-blind)
#005B69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f479a;
/* rgb */ color: rgb(47, 71, 154);
/* oklch */ color: oklch(42.8% 0.139 267.9);
Tailwind
colors: {
  custom: {
    50: '#7579b8',
    500: '#2f479a',
    950: '#000000',
  },
}
SCSS
$custom: #2f479a;
$custom-light: #7579b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f479a",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 154
  },
  "hsl": {
    "h": 226.542,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42792,
    "c": 0.13853,
    "h": 267.9
  },
  "luminance": 0.07444
}

Semantic roles & 50–950 ramp

primary
#2F479A
secondary
#BBA96A
accent
#BC4BDD
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F479A

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

Preview Lab → · Contrast checker → · Palette generator →

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