#2F4B7D#2F4B7D

#2F4B7D is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.6% C 0.091 H 261.2°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2F4B7D
RGBrgb(47, 75, 125)
HSLhsl(218, 45%, 34%)
HSVhsv(218, 62%, 49%)
CMYKcmyk(62.4%, 40%, 0%, 51%)
CIE-LABlab(32.07, 6.19, -31.53)
CIE-LCHlch(32.07, 32.13, 281.11°)
OKLaboklab(41.63% -0.0138 -0.0895)
OKLCHoklch(41.63% 0.091 261.2)
XYZxyz(7.3887, 7.1165, 20.3823)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4B7D #7D612F
analogous
#2F727D #2F4B7D #3A2F7D
triadic
#2F4B7D #7D2F4B #4B7D2F
tetradic
#2F4B7D #7D2F72 #7D612F #2F7D3A
square
#2F4B7D #7D2F72 #7D612F #2F7D3A
split-complementary
#2F4B7D #7D3A2F #727D2F
monochromatic
#0E1624 #1E3051 #2F4B7D #4066A9 #6285C4

Accessibility & contrast

On white

8.67
#2F4B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2F4B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4B7D
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4B7D#FFFFFF#000000##FFFFFF
##2F4B7D1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364F7F
Deuteranopia (green-blind)
#2B487C
Tritanopia (blue-blind)
#00565E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f4b7d;
/* rgb */ color: rgb(47, 75, 125);
/* oklch */ color: oklch(41.6% 0.091 261.2);
Tailwind
colors: {
  custom: {
    50: '#6f7ca3',
    500: '#2f4b7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f4b7d;
$custom-light: #6f7ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4b7d",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 125
  },
  "hsl": {
    "h": 218.462,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4163,
    "c": 0.09057,
    "h": 261.2
  },
  "luminance": 0.07117
}

Semantic roles & 50–950 ramp

primary
#2F4B7D
secondary
#AB8F5D
accent
#A653D5
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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