#2F476F#2F476F

#2F476F is a dark, moderate blue. Relative luminance 0.063; OKLCH L 39.8% C 0.074 H 260.2°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#2F476F
RGBrgb(47, 71, 111)
HSLhsl(218, 41%, 31%)
HSVhsv(218, 58%, 44%)
CMYKcmyk(57.7%, 36%, 0%, 56.5%)
CIE-LABlab(30.05, 3.77, -25.94)
CIE-LCHlch(30.05, 26.22, 278.28°)
OKLaboklab(39.81% -0.0127 -0.0732)
OKLCHoklch(39.81% 0.074 260.2)
XYZxyz(6.2938, 6.2580, 15.9121)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F476F #6F572F
analogous
#2F676F #2F476F #372F6F
triadic
#2F476F #6F2F47 #476F2F
tetradic
#2F476F #6F2F67 #6F572F #2F6F37
square
#2F476F #6F2F67 #6F572F #2F6F37
split-complementary
#2F476F #6F372F #676F2F
monochromatic
#0B1019 #1D2B44 #2F476F #41639A #5E81BB

Accessibility & contrast

On white

9.33
#2F476F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2F476F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F476F
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F476F#FFFFFF#000000##FFFFFF
##2F476F1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374A71
Deuteranopia (green-blind)
#2F446E
Tritanopia (blue-blind)
#085056
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f476f;
/* rgb */ color: rgb(47, 71, 111);
/* oklch */ color: oklch(39.8% 0.074 260.2);
Tailwind
colors: {
  custom: {
    50: '#6d7998',
    500: '#2f476f',
    950: '#000000',
  },
}
SCSS
$custom: #2f476f;
$custom-light: #6d7998;
$custom-dark: #000000;
JSON
{
  "hex": "#2f476f",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 111
  },
  "hsl": {
    "h": 217.5,
    "s": 40.506,
    "l": 30.98
  },
  "oklch": {
    "l": 0.39808,
    "c": 0.07432,
    "h": 260.2
  },
  "luminance": 0.06259
}

Semantic roles & 50–950 ramp

primary
#2F476F
secondary
#A08659
accent
#A357D0
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #2F476F

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

Preview Lab → · Contrast checker → · Palette generator →

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