#2F476E#2F476E

#2F476E is a dark, moderate blue. Relative luminance 0.062; OKLCH L 39.7% C 0.073 H 259.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#2F476E
RGBrgb(47, 71, 110)
HSLhsl(217, 40%, 31%)
HSVhsv(217, 57%, 43%)
CMYKcmyk(57.3%, 35.5%, 0%, 56.9%)
CIE-LABlab(30.00, 3.42, -25.39)
CIE-LCHlch(30.00, 25.62, 277.66°)
OKLaboklab(39.75% -0.013 -0.0716)
OKLCHoklch(39.75% 0.073 259.7)
XYZxyz(6.2390, 6.2361, 15.6237)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F476E #6E562F
analogous
#2F666E #2F476E #362F6E
triadic
#2F476E #6E2F47 #476E2F
tetradic
#2F476E #6E2F66 #6E562F #2F6E36
square
#2F476E #6E2F66 #6E562F #2F6E36
split-complementary
#2F476E #6E362F #666E2F
monochromatic
#0A1018 #1D2B43 #2F476E #416399 #5D81BA

Accessibility & contrast

On white

9.34
#2F476E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F476E
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F476E#FFFFFF#000000##FFFFFF
##2F476E1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374A70
Deuteranopia (green-blind)
#30446D
Tritanopia (blue-blind)
#0A5055
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f476e;
/* rgb */ color: rgb(47, 71, 110);
/* oklch */ color: oklch(39.7% 0.073 259.7);
Tailwind
colors: {
  custom: {
    50: '#6d7a98',
    500: '#2f476e',
    950: '#000000',
  },
}
SCSS
$custom: #2f476e;
$custom-light: #6d7a98;
$custom-dark: #000000;
JSON
{
  "hex": "#2f476e",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 110
  },
  "hsl": {
    "h": 217.143,
    "s": 40.127,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39749,
    "c": 0.0728,
    "h": 259.7
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

primary
#2F476E
secondary
#9F8559
accent
#A258D0
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #2F476E

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

Preview Lab → · Contrast checker → · Palette generator →

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