#2F478D#2F478D

#2F478D is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.8% C 0.120 H 266.9°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#2F478D
RGBrgb(47, 71, 141)
HSLhsl(225, 50%, 37%)
HSVhsv(225, 67%, 55%)
CMYKcmyk(66.7%, 49.6%, 0%, 44.7%)
CIE-LABlab(31.88, 14.83, -41.71)
CIE-LCHlch(31.88, 44.27, 289.57°)
OKLaboklab(41.81% -0.0064 -0.1194)
OKLCHoklch(41.81% 0.12 266.9)
XYZxyz(8.2316, 7.0331, 26.1179)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F478D #8D752F
analogous
#2F768D #2F478D #462F8D
triadic
#2F478D #8D2F47 #478D2F
tetradic
#2F478D #8D2F76 #8D752F #2F8D46
square
#2F478D #8D2F76 #8D752F #2F8D46
split-complementary
#2F478D #8D462F #768D2F
monochromatic
#101931 #20305F #2F478D #3E5EBB #6983CD

Accessibility & contrast

On white

8.73
#2F478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2F478D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F478D
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F478D#FFFFFF#000000##FFFFFF
##2F478D1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225090
Deuteranopia (green-blind)
#0D478C
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f478d;
/* rgb */ color: rgb(47, 71, 141);
/* oklch */ color: oklch(41.8% 0.120 266.9);
Tailwind
colors: {
  custom: {
    50: '#7279af',
    500: '#2f478d',
    950: '#000000',
  },
}
SCSS
$custom: #2f478d;
$custom-light: #7279af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f478d",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 224.681,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41809,
    "c": 0.11962,
    "h": 266.9
  },
  "luminance": 0.07034
}

Semantic roles & 50–950 ramp

primary
#2F478D
secondary
#B4A064
accent
#B64EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #2F478D

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

Preview Lab → · Contrast checker → · Palette generator →

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