#2F4DA5#2F4DA5

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

Color values

HEX#2F4DA5
RGBrgb(47, 77, 165)
HSLhsl(225, 56%, 42%)
HSVhsv(225, 72%, 65%)
CMYKcmyk(71.5%, 53.3%, 0%, 35.3%)
CIE-LABlab(35.26, 19.85, -50.81)
CIE-LCHlch(35.26, 54.55, 291.34°)
OKLaboklab(44.91% -0.0093 -0.1461)
OKLCHoklch(44.91% 0.146 266.3)
XYZxyz(10.6153, 8.6276, 36.6959)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DA5 #A5872F
analogous
#2F88A5 #2F4DA5 #4C2FA5
triadic
#2F4DA5 #A52F4D #4DA52F
tetradic
#2F4DA5 #A52F88 #A5872F #2FA54C
square
#2F4DA5 #A52F88 #A5872F #2FA54C
split-complementary
#2F4DA5 #A54C2F #88A52F
monochromatic
#142146 #213775 #2F4DA5 #4768CB #768FD8

Accessibility & contrast

On white

7.70
#2F4DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2F4DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DA5
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DA5#FFFFFF#000000##FFFFFF
##2F4DA51.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1059A8
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4da5;
/* rgb */ color: rgb(47, 77, 165);
/* oklch */ color: oklch(44.9% 0.146 266.3);
Tailwind
colors: {
  custom: {
    50: '#777ec0',
    500: '#2f4da5',
    950: '#000000',
  },
}
SCSS
$custom: #2f4da5;
$custom-light: #777ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4da5",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 165
  },
  "hsl": {
    "h": 224.746,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44908,
    "c": 0.14642,
    "h": 266.3
  },
  "luminance": 0.08629
}

Semantic roles & 50–950 ramp

primary
#2F4DA5
secondary
#C0AC70
accent
#B949DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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