#2F4DA4#2F4DA4

#2F4DA4 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.8% C 0.145 H 266.3°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#2F4DA4
RGBrgb(47, 77, 164)
HSLhsl(225, 55%, 41%)
HSVhsv(225, 71%, 64%)
CMYKcmyk(71.3%, 53%, 0%, 35.7%)
CIE-LABlab(35.19, 19.47, -50.32)
CIE-LCHlch(35.19, 53.96, 291.15°)
OKLaboklab(44.83% -0.0094 -0.1447)
OKLCHoklch(44.83% 0.145 266.3)
XYZxyz(10.5247, 8.5914, 36.2184)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DA4 #A4862F
analogous
#2F88A4 #2F4DA4 #4C2FA4
triadic
#2F4DA4 #A42F4D #4DA42F
tetradic
#2F4DA4 #A42F88 #A4862F #2FA44C
square
#2F4DA4 #A42F88 #A4862F #2FA44C
split-complementary
#2F4DA4 #A44C2F #88A42F
monochromatic
#142045 #213774 #2F4DA4 #4668CA #768FD8

Accessibility & contrast

On white

7.73
#2F4DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2F4DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DA4
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DA4#FFFFFF#000000##FFFFFF
##2F4DA41.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1358A7
Deuteranopia (green-blind)
#004EA2
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4da4;
/* rgb */ color: rgb(47, 77, 164);
/* oklch */ color: oklch(44.8% 0.145 266.3);
Tailwind
colors: {
  custom: {
    50: '#777ec0',
    500: '#2f4da4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4da4;
$custom-light: #777ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4da4",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 164
  },
  "hsl": {
    "h": 224.615,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4483,
    "c": 0.14501,
    "h": 266.3
  },
  "luminance": 0.08592
}

Semantic roles & 50–950 ramp

primary
#2F4DA4
secondary
#C0AB6F
accent
#B849DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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