#2F4574#2F4574

#2F4574 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.6% C 0.084 H 264.0°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#2F4574
RGBrgb(47, 69, 116)
HSLhsl(221, 42%, 32%)
HSVhsv(221, 59%, 45%)
CMYKcmyk(59.5%, 40.5%, 0%, 54.5%)
CIE-LABlab(29.72, 6.91, -29.63)
CIE-LCHlch(29.72, 30.43, 283.13°)
OKLaboklab(39.64% -0.0088 -0.084)
OKLCHoklch(39.64% 0.084 264)
XYZxyz(6.4517, 6.1210, 17.3611)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4574 #745E2F
analogous
#2F6874 #2F4574 #3C2F74
triadic
#2F4574 #742F45 #45742F
tetradic
#2F4574 #742F68 #745E2F #2F743C
square
#2F4574 #742F68 #745E2F #2F743C
split-complementary
#2F4574 #743C2F #68742F
monochromatic
#0C111D #1D2B48 #2F4574 #415FA0 #5F7DBE

Accessibility & contrast

On white

9.44
#2F4574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F4574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4574
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4574#FFFFFF#000000##FFFFFF
##2F45741.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314976
Deuteranopia (green-blind)
#294373
Tritanopia (blue-blind)
#004F57
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4574;
/* rgb */ color: rgb(47, 69, 116);
/* oklch */ color: oklch(39.6% 0.084 264.0);
Tailwind
colors: {
  custom: {
    50: '#6e789c',
    500: '#2f4574',
    950: '#000000',
  },
}
SCSS
$custom: #2f4574;
$custom-light: #6e789c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4574",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 116
  },
  "hsl": {
    "h": 220.87,
    "s": 42.331,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39637,
    "c": 0.08448,
    "h": 264
  },
  "luminance": 0.06122
}

Semantic roles & 50–950 ramp

primary
#2F4574
secondary
#A58D5A
accent
#AA56D2
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2F4574

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

Preview Lab → · Contrast checker → · Palette generator →

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