#2F4E8A#2F4E8A

#2F4E8A is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.106 H 262.3°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#2F4E8A
RGBrgb(47, 78, 138)
HSLhsl(220, 49%, 36%)
HSVhsv(220, 66%, 54%)
CMYKcmyk(65.9%, 43.5%, 0%, 45.9%)
CIE-LABlab(33.75, 9.02, -36.89)
CIE-LCHlch(33.75, 37.97, 283.73°)
OKLaboklab(43.18% -0.0143 -0.1052)
OKLCHoklch(43.18% 0.106 262.3)
XYZxyz(8.4825, 7.8873, 25.1152)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E8A #8A6B2F
analogous
#2F7C8A #2F4E8A #3E2F8A
triadic
#2F4E8A #8A2F4E #4E8A2F
tetradic
#2F4E8A #8A2F7C #8A6B2F #2F8A3E
square
#2F4E8A #8A2F7C #8A6B2F #2F8A3E
split-complementary
#2F4E8A #8A3E2F #7C8A2F
monochromatic
#101A2F #1F345C #2F4E8A #3F68B8 #688ACC

Accessibility & contrast

On white

8.15
#2F4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2F4E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E8A
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E8A#FFFFFF#000000##FFFFFF
##2F4E8A1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548C
Deuteranopia (green-blind)
#254B89
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4e8a;
/* rgb */ color: rgb(47, 78, 138);
/* oklch */ color: oklch(43.2% 0.106 262.3);
Tailwind
colors: {
  custom: {
    50: '#717fac',
    500: '#2f4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e8a;
$custom-light: #717fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e8a",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 219.56,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43177,
    "c": 0.10613,
    "h": 262.3
  },
  "luminance": 0.07888
}

Semantic roles & 50–950 ramp

primary
#2F4E8A
secondary
#B39762
accent
#AA4FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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