#2F4E8C#2F4E8C

#2F4E8C is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.3% C 0.109 H 262.7°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#2F4E8C
RGBrgb(47, 78, 140)
HSLhsl(220, 50%, 37%)
HSVhsv(220, 66%, 55%)
CMYKcmyk(66.4%, 44.3%, 0%, 45.1%)
CIE-LABlab(33.87, 9.76, -37.91)
CIE-LCHlch(33.87, 39.15, 284.44°)
OKLaboklab(43.31% -0.0139 -0.1082)
OKLCHoklch(43.31% 0.109 262.7)
XYZxyz(8.6286, 7.9458, 25.8848)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E8C #8C6D2F
analogous
#2F7D8C #2F4E8C #3F2F8C
triadic
#2F4E8C #8C2F4E #4E8C2F
tetradic
#2F4E8C #8C2F7D #8C6D2F #2F8C3F
square
#2F4E8C #8C2F7D #8C6D2F #2F8C3F
split-complementary
#2F4E8C #8C3F2F #7D8C2F
monochromatic
#101B30 #20345E #2F4E8C #3E68BA #698ACD

Accessibility & contrast

On white

8.11
#2F4E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F4E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E8C
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E8C#FFFFFF#000000##FFFFFF
##2F4E8C1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31548E
Deuteranopia (green-blind)
#224C8B
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4e8c;
/* rgb */ color: rgb(47, 78, 140);
/* oklch */ color: oklch(43.3% 0.109 262.7);
Tailwind
colors: {
  custom: {
    50: '#727fae',
    500: '#2f4e8c',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e8c;
$custom-light: #727fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e8c",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 140
  },
  "hsl": {
    "h": 220,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43311,
    "c": 0.10907,
    "h": 262.7
  },
  "luminance": 0.07947
}

Semantic roles & 50–950 ramp

primary
#2F4E8C
secondary
#B49963
accent
#AB4FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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