#2F4974#2F4974

#2F4974 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.6% C 0.079 H 260.0°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2F4974
RGBrgb(47, 73, 116)
HSLhsl(217, 42%, 32%)
HSVhsv(217, 59%, 45%)
CMYKcmyk(59.5%, 37.1%, 0%, 54.5%)
CIE-LABlab(30.95, 4.24, -27.68)
CIE-LCHlch(30.95, 28.00, 278.71°)
OKLaboklab(40.59% -0.0138 -0.0783)
OKLCHoklch(40.59% 0.079 260)
XYZxyz(6.7061, 6.6298, 17.4459)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4974 #745A2F
analogous
#2F6C74 #2F4974 #382F74
triadic
#2F4974 #742F49 #49742F
tetradic
#2F4974 #742F6C #745A2F #2F7438
square
#2F4974 #742F6C #745A2F #2F7438
split-complementary
#2F4974 #74382F #6C742F
monochromatic
#0C121D #1D2E48 #2F4974 #4164A0 #5F83BE

Accessibility & contrast

On white

9.03
#2F4974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F4974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4974
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4974#FFFFFF#000000##FFFFFF
##2F49741.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374C76
Deuteranopia (green-blind)
#2F4673
Tritanopia (blue-blind)
#005359
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4974;
/* rgb */ color: rgb(47, 73, 116);
/* oklch */ color: oklch(40.6% 0.079 260.0);
Tailwind
colors: {
  custom: {
    50: '#6d7b9c',
    500: '#2f4974',
    950: '#000000',
  },
}
SCSS
$custom: #2f4974;
$custom-light: #6d7b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4974",
  "rgb": {
    "r": 47,
    "g": 73,
    "b": 116
  },
  "hsl": {
    "h": 217.391,
    "s": 42.331,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40593,
    "c": 0.07948,
    "h": 260
  },
  "luminance": 0.0663
}

Semantic roles & 50–950 ramp

primary
#2F4974
secondary
#A5895A
accent
#A356D2
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2F4974

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

Preview Lab → · Contrast checker → · Palette generator →

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