#2F4D9F#2F4D9F

#2F4D9F is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.138 H 265.9°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#2F4D9F
RGBrgb(47, 77, 159)
HSLhsl(224, 54%, 40%)
HSVhsv(224, 70%, 62%)
CMYKcmyk(70.4%, 51.6%, 0%, 37.6%)
CIE-LABlab(34.83, 17.59, -47.90)
CIE-LCHlch(34.83, 51.02, 290.16°)
OKLaboklab(44.45% -0.0099 -0.1375)
OKLCHoklch(44.45% 0.138 265.9)
XYZxyz(10.0820, 8.4143, 33.8870)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D9F #9F812F
analogous
#2F859F #2F4D9F #492F9F
triadic
#2F4D9F #9F2F4D #4D9F2F
tetradic
#2F4D9F #9F2F85 #9F812F #2F9F49
square
#2F4D9F #9F2F85 #9F812F #2F9F49
split-complementary
#2F4D9F #9F492F #859F2F
monochromatic
#131F41 #213670 #2F4D9F #4467C8 #738DD6

Accessibility & contrast

On white

7.83
#2F4D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2F4D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D9F
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D9F#FFFFFF#000000##FFFFFF
##2F4D9F1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C57A2
Deuteranopia (green-blind)
#004D9D
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4d9f;
/* rgb */ color: rgb(47, 77, 159);
/* oklch */ color: oklch(44.4% 0.138 265.9);
Tailwind
colors: {
  custom: {
    50: '#767ebc',
    500: '#2f4d9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d9f;
$custom-light: #767ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d9f",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 159
  },
  "hsl": {
    "h": 223.929,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44449,
    "c": 0.13791,
    "h": 265.9
  },
  "luminance": 0.08415
}

Semantic roles & 50–950 ramp

primary
#2F4D9F
secondary
#BDA86D
accent
#B64ADE
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2F4D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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