#2F4E7D#2F4E7D

#2F4E7D is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.3% C 0.087 H 258.5°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2F4E7D
RGBrgb(47, 78, 125)
HSLhsl(216, 45%, 34%)
HSVhsv(216, 62%, 49%)
CMYKcmyk(62.4%, 37.6%, 0%, 51%)
CIE-LABlab(32.99, 4.21, -30.07)
CIE-LCHlch(32.99, 30.37, 277.97°)
OKLaboklab(42.35% -0.0174 -0.0852)
OKLCHoklch(42.35% 0.087 258.5)
XYZxyz(7.5970, 7.5331, 20.4517)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E7D #7D5E2F
analogous
#2F757D #2F4E7D #372F7D
triadic
#2F4E7D #7D2F4E #4E7D2F
tetradic
#2F4E7D #7D2F75 #7D5E2F #2F7D37
square
#2F4E7D #7D2F75 #7D5E2F #2F7D37
split-complementary
#2F4E7D #7D372F #757D2F
monochromatic
#0E1624 #1E3251 #2F4E7D #406AA9 #6289C4

Accessibility & contrast

On white

8.38
#2F4E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4E7D
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E7D#FFFFFF#000000##FFFFFF
##2F4E7D1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A527F
Deuteranopia (green-blind)
#304A7C
Tritanopia (blue-blind)
#00595F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4e7d;
/* rgb */ color: rgb(47, 78, 125);
/* oklch */ color: oklch(42.3% 0.087 258.5);
Tailwind
colors: {
  custom: {
    50: '#6f7fa3',
    500: '#2f4e7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e7d;
$custom-light: #6f7fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e7d",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 125
  },
  "hsl": {
    "h": 216.154,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42345,
    "c": 0.08696,
    "h": 258.5
  },
  "luminance": 0.07534
}

Semantic roles & 50–950 ramp

primary
#2F4E7D
secondary
#AB8C5D
accent
#A153D5
background
#F6F7FA
surface
#ECEEF3
border
#C7C9CD
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F4E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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