#2F478C#2F478C

#2F478C is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.7% C 0.118 H 266.8°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#2F478C
RGBrgb(47, 71, 140)
HSLhsl(225, 50%, 37%)
HSVhsv(225, 66%, 55%)
CMYKcmyk(66.4%, 49.3%, 0%, 45.1%)
CIE-LABlab(31.81, 14.45, -41.21)
CIE-LCHlch(31.81, 43.67, 289.33°)
OKLaboklab(41.74% -0.0065 -0.118)
OKLCHoklch(41.74% 0.118 266.8)
XYZxyz(8.1575, 7.0035, 25.7278)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F478C #8C742F
analogous
#2F768C #2F478C #462F8C
triadic
#2F478C #8C2F47 #478C2F
tetradic
#2F478C #8C2F76 #8C742F #2F8C46
square
#2F478C #8C2F76 #8C742F #2F8C46
split-complementary
#2F478C #8C462F #768C2F
monochromatic
#101930 #20305E #2F478C #3E5EBA #6983CD

Accessibility & contrast

On white

8.75
#2F478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F478C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F478C
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F478C#FFFFFF#000000##FFFFFF
##2F478C1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8F
Deuteranopia (green-blind)
#0F478B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f478c;
/* rgb */ color: rgb(47, 71, 140);
/* oklch */ color: oklch(41.7% 0.118 266.8);
Tailwind
colors: {
  custom: {
    50: '#7279ae',
    500: '#2f478c',
    950: '#000000',
  },
}
SCSS
$custom: #2f478c;
$custom-light: #7279ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f478c",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 224.516,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41736,
    "c": 0.11814,
    "h": 266.8
  },
  "luminance": 0.07004
}

Semantic roles & 50–950 ramp

primary
#2F478C
secondary
#B49F63
accent
#B54FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #2F478C

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

Preview Lab → · Contrast checker → · Palette generator →

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