#2F4E8E#2F4E8E

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

Color values

HEX#2F4E8E
RGBrgb(47, 78, 142)
HSLhsl(220, 50%, 37%)
HSVhsv(220, 67%, 56%)
CMYKcmyk(66.9%, 45.1%, 0%, 44.3%)
CIE-LABlab(33.99, 10.51, -38.94)
CIE-LCHlch(33.99, 40.33, 285.11°)
OKLaboklab(43.45% -0.0135 -0.1112)
OKLCHoklch(43.45% 0.112 263.1)
XYZxyz(8.7775, 8.0053, 26.6685)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E8E #8E6F2F
analogous
#2F7E8E #2F4E8E #3F2F8E
triadic
#2F4E8E #8E2F4E #4E8E2F
tetradic
#2F4E8E #8E2F7E #8E6F2F #2F8E3F
square
#2F4E8E #8E2F7E #8E6F2F #2F8E3F
split-complementary
#2F4E8E #8E3F2F #7E8E2F
monochromatic
#111B32 #203560 #2F4E8E #3E67BC #6A8ACE

Accessibility & contrast

On white

8.07
#2F4E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4E8E
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E8E#FFFFFF#000000##FFFFFF
##2F4E8E1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305590
Deuteranopia (green-blind)
#204C8D
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4e8e;
/* rgb */ color: rgb(47, 78, 142);
/* oklch */ color: oklch(43.4% 0.112 263.1);
Tailwind
colors: {
  custom: {
    50: '#727faf',
    500: '#2f4e8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e8e;
$custom-light: #727faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e8e",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 142
  },
  "hsl": {
    "h": 220.421,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43447,
    "c": 0.112,
    "h": 263.1
  },
  "luminance": 0.08006
}

Semantic roles & 50–950 ramp

primary
#2F4E8E
secondary
#B59A64
accent
#AC4EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #2F4E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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