#2F479B#2F479B

#2F479B is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.9% C 0.140 H 268.0°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2F479B
RGBrgb(47, 71, 155)
HSLhsl(227, 53%, 40%)
HSVhsv(227, 70%, 61%)
CMYKcmyk(69.7%, 54.2%, 0%, 39.2%)
CIE-LABlab(32.87, 20.09, -48.65)
CIE-LCHlch(32.87, 52.64, 292.44°)
OKLaboklab(42.87% -0.0049 -0.1399)
OKLCHoklch(42.87% 0.14 268)
XYZxyz(9.3399, 7.4765, 31.9549)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F479B #9B832F
analogous
#2F7D9B #2F479B #4D2F9B
triadic
#2F479B #9B2F47 #479B2F
tetradic
#2F479B #9B2F7D #9B832F #2F9B4D
square
#2F479B #9B2F7D #9B832F #2F9B4D
split-complementary
#2F479B #9B4D2F #7D9B2F
monochromatic
#131C3D #21316C #2F479B #425FC6 #7187D4

Accessibility & contrast

On white

8.42
#2F479B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F479B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F479B
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F479B#FFFFFF#000000##FFFFFF
##2F479B1.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B529E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#005B6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f479b;
/* rgb */ color: rgb(47, 71, 155);
/* oklch */ color: oklch(42.9% 0.140 268.0);
Tailwind
colors: {
  custom: {
    50: '#7579b9',
    500: '#2f479b',
    950: '#000000',
  },
}
SCSS
$custom: #2f479b;
$custom-light: #7579b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f479b",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 155
  },
  "hsl": {
    "h": 226.667,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42871,
    "c": 0.13997,
    "h": 268
  },
  "luminance": 0.07477
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F479B

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

Preview Lab → · Contrast checker → · Palette generator →

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