#2F4F7D#2F4F7D

#2F4F7D is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.6% C 0.086 H 257.5°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2F4F7D
RGBrgb(47, 79, 125)
HSLhsl(215, 45%, 34%)
HSVhsv(215, 62%, 49%)
CMYKcmyk(62.4%, 36.8%, 0%, 51%)
CIE-LABlab(33.30, 3.56, -29.58)
CIE-LCHlch(33.30, 29.80, 276.85°)
OKLaboklab(42.59% -0.0185 -0.0838)
OKLCHoklch(42.59% 0.086 257.5)
XYZxyz(7.6686, 7.6763, 20.4756)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F7D #7D5D2F
analogous
#2F767D #2F4F7D #362F7D
triadic
#2F4F7D #7D2F4F #4F7D2F
tetradic
#2F4F7D #7D2F76 #7D5D2F #2F7D36
square
#2F4F7D #7D2F76 #7D5D2F #2F7D36
split-complementary
#2F4F7D #7D362F #767D2F
monochromatic
#0E1724 #1E3351 #2F4F7D #406BA9 #628AC4

Accessibility & contrast

On white

8.28
#2F4F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2F4F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F7D
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F7D#FFFFFF#000000##FFFFFF
##2F4F7D1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C527F
Deuteranopia (green-blind)
#314B7C
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4f7d;
/* rgb */ color: rgb(47, 79, 125);
/* oklch */ color: oklch(42.6% 0.086 257.5);
Tailwind
colors: {
  custom: {
    50: '#6f80a3',
    500: '#2f4f7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f7d;
$custom-light: #6f80a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f7d",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 125
  },
  "hsl": {
    "h": 215.385,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42585,
    "c": 0.0858,
    "h": 257.5
  },
  "luminance": 0.07677
}

Semantic roles & 50–950 ramp

primary
#2F4F7D
secondary
#AB8B5D
accent
#A053D5
background
#F6F7FA
surface
#ECEEF3
border
#C7C9CD
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F4F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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