#2F4E7B#2F4E7B

#2F4E7B is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.2% C 0.084 H 257.7°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#2F4E7B
RGBrgb(47, 78, 123)
HSLhsl(216, 45%, 33%)
HSVhsv(216, 62%, 48%)
CMYKcmyk(61.8%, 36.6%, 0%, 51.8%)
CIE-LABlab(32.88, 3.48, -29.00)
CIE-LCHlch(32.88, 29.21, 276.85°)
OKLaboklab(42.22% -0.0179 -0.0821)
OKLCHoklch(42.22% 0.084 257.7)
XYZxyz(7.4706, 7.4825, 19.7856)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E7B #7B5C2F
analogous
#2F747B #2F4E7B #362F7B
triadic
#2F4E7B #7B2F4E #4E7B2F
tetradic
#2F4E7B #7B2F74 #7B5C2F #2F7B36
square
#2F4E7B #7B2F74 #7B5C2F #2F7B36
split-complementary
#2F4E7B #7B362F #747B2F
monochromatic
#0D1622 #1E324F #2F4E7B #406AA7 #6289C3

Accessibility & contrast

On white

8.41
#2F4E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F4E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E7B
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E7B#FFFFFF#000000##FFFFFF
##2F4E7B1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B517D
Deuteranopia (green-blind)
#314A7A
Tritanopia (blue-blind)
#00585E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4e7b;
/* rgb */ color: rgb(47, 78, 123);
/* oklch */ color: oklch(42.2% 0.084 257.7);
Tailwind
colors: {
  custom: {
    50: '#6f7fa1',
    500: '#2f4e7b',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e7b;
$custom-light: #6f7fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e7b",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 123
  },
  "hsl": {
    "h": 215.526,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42223,
    "c": 0.08402,
    "h": 257.7
  },
  "luminance": 0.07483
}

Semantic roles & 50–950 ramp

primary
#2F4E7B
secondary
#AA8A5C
accent
#A053D4
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0F
muted
#7B7C7E

Preview Lab

Preview with #2F4E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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