#2F4D7D#2F4D7D

#2F4D7D is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.1% C 0.088 H 259.4°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#2F4D7D
RGBrgb(47, 77, 125)
HSLhsl(217, 45%, 34%)
HSVhsv(217, 62%, 49%)
CMYKcmyk(62.4%, 38.4%, 0%, 51%)
CIE-LABlab(32.68, 4.87, -30.56)
CIE-LCHlch(32.68, 30.94, 279.05°)
OKLaboklab(42.11% -0.0162 -0.0866)
OKLCHoklch(42.11% 0.088 259.4)
XYZxyz(7.5265, 7.3921, 20.4282)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D7D #7D5F2F
analogous
#2F747D #2F4D7D #382F7D
triadic
#2F4D7D #7D2F4D #4D7D2F
tetradic
#2F4D7D #7D2F74 #7D5F2F #2F7D38
square
#2F4D7D #7D2F74 #7D5F2F #2F7D38
split-complementary
#2F4D7D #7D382F #747D2F
monochromatic
#0E1624 #1E3251 #2F4D7D #4068A9 #6288C4

Accessibility & contrast

On white

8.47
#2F4D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2F4D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D7D
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D7D#FFFFFF#000000##FFFFFF
##2F4D7D1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39517F
Deuteranopia (green-blind)
#2E4A7C
Tritanopia (blue-blind)
#00585F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4d7d;
/* rgb */ color: rgb(47, 77, 125);
/* oklch */ color: oklch(42.1% 0.088 259.4);
Tailwind
colors: {
  custom: {
    50: '#6f7ea3',
    500: '#2f4d7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d7d;
$custom-light: #6f7ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d7d",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 125
  },
  "hsl": {
    "h": 216.923,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42105,
    "c": 0.08814,
    "h": 259.4
  },
  "luminance": 0.07393
}

Semantic roles & 50–950 ramp

primary
#2F4D7D
secondary
#AB8D5D
accent
#A353D5
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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