#2F4E8D#2F4E8D

#2F4E8D is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.4% C 0.111 H 262.9°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#2F4E8D
RGBrgb(47, 78, 141)
HSLhsl(220, 50%, 37%)
HSVhsv(220, 67%, 55%)
CMYKcmyk(66.7%, 44.7%, 0%, 44.7%)
CIE-LABlab(33.93, 10.14, -38.43)
CIE-LCHlch(33.93, 39.74, 284.78°)
OKLaboklab(43.38% -0.0137 -0.1097)
OKLCHoklch(43.38% 0.111 262.9)
XYZxyz(8.7027, 7.9754, 26.2749)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E8D #8D6E2F
analogous
#2F7D8D #2F4E8D #3F2F8D
triadic
#2F4E8D #8D2F4E #4E8D2F
tetradic
#2F4E8D #8D2F7D #8D6E2F #2F8D3F
square
#2F4E8D #8D2F7D #8D6E2F #2F8D3F
split-complementary
#2F4E8D #8D3F2F #7D8D2F
monochromatic
#101B31 #20355F #2F4E8D #3E67BB #698ACD

Accessibility & contrast

On white

8.09
#2F4E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2F4E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E8D
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E8D#FFFFFF#000000##FFFFFF
##2F4E8D1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30548F
Deuteranopia (green-blind)
#214C8C
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4e8d;
/* rgb */ color: rgb(47, 78, 141);
/* oklch */ color: oklch(43.4% 0.111 262.9);
Tailwind
colors: {
  custom: {
    50: '#727faf',
    500: '#2f4e8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e8d;
$custom-light: #727faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e8d",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 141
  },
  "hsl": {
    "h": 220.213,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43379,
    "c": 0.11054,
    "h": 262.9
  },
  "luminance": 0.07976
}

Semantic roles & 50–950 ramp

primary
#2F4E8D
secondary
#B49A64
accent
#AC4EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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