#2F4774#2F4774

#2F4774 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.1% C 0.082 H 262.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2F4774
RGBrgb(47, 71, 116)
HSLhsl(219, 42%, 32%)
HSVhsv(219, 59%, 45%)
CMYKcmyk(59.5%, 38.8%, 0%, 54.5%)
CIE-LABlab(30.33, 5.57, -28.66)
CIE-LCHlch(30.33, 29.20, 281.00°)
OKLaboklab(40.11% -0.0113 -0.0811)
OKLCHoklch(40.11% 0.082 262.1)
XYZxyz(6.5768, 6.3712, 17.4028)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4774 #745C2F
analogous
#2F6A74 #2F4774 #3A2F74
triadic
#2F4774 #742F47 #47742F
tetradic
#2F4774 #742F6A #745C2F #2F743A
square
#2F4774 #742F6A #745C2F #2F743A
split-complementary
#2F4774 #743A2F #6A742F
monochromatic
#0C121D #1D2C48 #2F4774 #4162A0 #5F80BE

Accessibility & contrast

On white

9.23
#2F4774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F4774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4774
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4774#FFFFFF#000000##FFFFFF
##2F47741.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344B76
Deuteranopia (green-blind)
#2C4473
Tritanopia (blue-blind)
#005158
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f4774;
/* rgb */ color: rgb(47, 71, 116);
/* oklch */ color: oklch(40.1% 0.082 262.1);
Tailwind
colors: {
  custom: {
    50: '#6d799c',
    500: '#2f4774',
    950: '#000000',
  },
}
SCSS
$custom: #2f4774;
$custom-light: #6d799c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4774",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 116
  },
  "hsl": {
    "h": 219.13,
    "s": 42.331,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40113,
    "c": 0.08193,
    "h": 262.1
  },
  "luminance": 0.06372
}

Semantic roles & 50–950 ramp

primary
#2F4774
secondary
#A58B5A
accent
#A756D2
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2F4774

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

Preview Lab → · Contrast checker → · Palette generator →

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