#2F4DA1#2F4DA1

#2F4DA1 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.6% C 0.141 H 266.0°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#2F4DA1
RGBrgb(47, 77, 161)
HSLhsl(224, 55%, 41%)
HSVhsv(224, 71%, 63%)
CMYKcmyk(70.8%, 52.2%, 0%, 36.9%)
CIE-LABlab(34.97, 18.34, -48.87)
CIE-LCHlch(34.97, 52.20, 290.57°)
OKLaboklab(44.6% -0.0097 -0.1404)
OKLCHoklch(44.6% 0.141 266)
XYZxyz(10.2569, 8.4843, 34.8084)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DA1 #A1832F
analogous
#2F86A1 #2F4DA1 #4A2FA1
triadic
#2F4DA1 #A12F4D #4DA12F
tetradic
#2F4DA1 #A12F86 #A1832F #2FA14A
square
#2F4DA1 #A12F86 #A1832F #2FA14A
split-complementary
#2F4DA1 #A14A2F #86A12F
monochromatic
#132042 #213672 #2F4DA1 #4567C9 #748ED6

Accessibility & contrast

On white

7.79
#2F4DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2F4DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DA1
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DA1#FFFFFF#000000##FFFFFF
##2F4DA11.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1958A4
Deuteranopia (green-blind)
#004D9F
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4da1;
/* rgb */ color: rgb(47, 77, 161);
/* oklch */ color: oklch(44.6% 0.141 266.0);
Tailwind
colors: {
  custom: {
    50: '#767ebd',
    500: '#2f4da1',
    950: '#000000',
  },
}
SCSS
$custom: #2f4da1;
$custom-light: #767ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4da1",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 161
  },
  "hsl": {
    "h": 224.211,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.446,
    "c": 0.14076,
    "h": 266
  },
  "luminance": 0.08485
}

Semantic roles & 50–950 ramp

primary
#2F4DA1
secondary
#BEA96E
accent
#B74ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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