#2F4E8F#2F4E8F

#2F4E8F is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.5% C 0.113 H 263.3°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#2F4E8F
RGBrgb(47, 78, 143)
HSLhsl(221, 51%, 37%)
HSVhsv(221, 67%, 56%)
CMYKcmyk(67.1%, 45.5%, 0%, 43.9%)
CIE-LABlab(34.06, 10.89, -39.45)
CIE-LCHlch(34.06, 40.92, 285.43°)
OKLaboklab(43.52% -0.0133 -0.1127)
OKLCHoklch(43.52% 0.113 263.3)
XYZxyz(8.8529, 8.0354, 27.0657)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E8F #8F702F
analogous
#2F7E8F #2F4E8F #402F8F
triadic
#2F4E8F #8F2F4E #4E8F2F
tetradic
#2F4E8F #8F2F7E #8F702F #2F8F40
square
#2F4E8F #8F2F7E #8F702F #2F8F40
split-complementary
#2F4E8F #8F402F #7E8F2F
monochromatic
#111C33 #203561 #2F4E8F #3E67BD #6A8BCE

Accessibility & contrast

On white

8.05
#2F4E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2F4E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E8F
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E8F#FFFFFF#000000##FFFFFF
##2F4E8F1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5591
Deuteranopia (green-blind)
#1F4C8E
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4e8f;
/* rgb */ color: rgb(47, 78, 143);
/* oklch */ color: oklch(43.5% 0.113 263.3);
Tailwind
colors: {
  custom: {
    50: '#727fb0',
    500: '#2f4e8f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e8f;
$custom-light: #727fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e8f",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 143
  },
  "hsl": {
    "h": 220.625,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43515,
    "c": 0.11347,
    "h": 263.3
  },
  "luminance": 0.08036
}

Semantic roles & 50–950 ramp

primary
#2F4E8F
secondary
#B59B65
accent
#AD4EDA
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #2F4E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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