#2F4E7E#2F4E7E

#2F4E7E is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.4% C 0.088 H 258.9°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2F4E7E
RGBrgb(47, 78, 126)
HSLhsl(216, 46%, 34%)
HSVhsv(216, 63%, 49%)
CMYKcmyk(62.7%, 38.1%, 0%, 50.6%)
CIE-LABlab(33.05, 4.58, -30.60)
CIE-LCHlch(33.05, 30.94, 278.51°)
OKLaboklab(42.41% -0.0171 -0.0868)
OKLCHoklch(42.41% 0.088 258.9)
XYZxyz(7.6612, 7.5588, 20.7899)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E7E #7E5F2F
analogous
#2F767E #2F4E7E #382F7E
triadic
#2F4E7E #7E2F4E #4E7E2F
tetradic
#2F4E7E #7E2F76 #7E5F2F #2F7E38
square
#2F4E7E #7E2F76 #7E5F2F #2F7E38
split-complementary
#2F4E7E #7E382F #767E2F
monochromatic
#0E1725 #1E3251 #2F4E7E #406AAB #6389C5

Accessibility & contrast

On white

8.36
#2F4E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2F4E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E7E
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E7E#FFFFFF#000000##FFFFFF
##2F4E7E1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5280
Deuteranopia (green-blind)
#2F4A7D
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4e7e;
/* rgb */ color: rgb(47, 78, 126);
/* oklch */ color: oklch(42.4% 0.088 258.9);
Tailwind
colors: {
  custom: {
    50: '#6f7fa3',
    500: '#2f4e7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e7e;
$custom-light: #6f7fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e7e",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 126
  },
  "hsl": {
    "h": 216.456,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42406,
    "c": 0.08843,
    "h": 258.9
  },
  "luminance": 0.07559
}

Semantic roles & 50–950 ramp

primary
#2F4E7E
secondary
#AC8D5D
accent
#A252D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F4E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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