#2F4579#2F4579

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

Color values

HEX#2F4579
RGBrgb(47, 69, 121)
HSLhsl(222, 44%, 33%)
HSVhsv(222, 61%, 47%)
CMYKcmyk(61.2%, 43%, 0%, 52.5%)
CIE-LABlab(30.01, 8.74, -32.30)
CIE-LCHlch(30.01, 33.46, 285.14°)
OKLaboklab(39.96% -0.0077 -0.0918)
OKLCHoklch(39.96% 0.092 265.2)
XYZxyz(6.7504, 6.2405, 18.9343)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4579 #79632F
analogous
#2F6A79 #2F4579 #3E2F79
triadic
#2F4579 #792F45 #45792F
tetradic
#2F4579 #792F6A #79632F #2F793E
square
#2F4579 #792F6A #79632F #2F793E
split-complementary
#2F4579 #793E2F #6A792F
monochromatic
#0D1321 #1E2C4D #2F4579 #405EA5 #617EC2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4579#FFFFFF#000000##FFFFFF
##2F45791.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)
#2E4A7B
Deuteranopia (green-blind)
#254478
Tritanopia (blue-blind)
#005159
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f4579;
/* rgb */ color: rgb(47, 69, 121);
/* oklch */ color: oklch(40.0% 0.092 265.2);
Tailwind
colors: {
  custom: {
    50: '#6e78a0',
    500: '#2f4579',
    950: '#000000',
  },
}
SCSS
$custom: #2f4579;
$custom-light: #6e78a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4579",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 121
  },
  "hsl": {
    "h": 222.162,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39961,
    "c": 0.09216,
    "h": 265.2
  },
  "luminance": 0.06241
}

Semantic roles & 50–950 ramp

primary
#2F4579
secondary
#A8925B
accent
#AE54D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #2F4579

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

Preview Lab → · Contrast checker → · Palette generator →

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