#2F4DA7#2F4DA7

#2F4DA7 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.149 H 266.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#2F4DA7
RGBrgb(47, 77, 167)
HSLhsl(225, 56%, 42%)
HSVhsv(225, 72%, 65%)
CMYKcmyk(71.9%, 53.9%, 0%, 34.5%)
CIE-LABlab(35.40, 20.61, -51.77)
CIE-LCHlch(35.40, 55.72, 291.71°)
OKLaboklab(45.06% -0.0092 -0.1489)
OKLCHoklch(45.06% 0.149 266.5)
XYZxyz(10.7988, 8.7010, 37.6621)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DA7 #A7892F
analogous
#2F89A7 #2F4DA7 #4D2FA7
triadic
#2F4DA7 #A72F4D #4DA72F
tetradic
#2F4DA7 #A72F89 #A7892F #2FA74D
square
#2F4DA7 #A72F89 #A7892F #2FA74D
split-complementary
#2F4DA7 #A74D2F #89A72F
monochromatic
#142147 #223777 #2F4DA7 #4869CB #7890D9

Accessibility & contrast

On white

7.66
#2F4DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2F4DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DA7
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DA7#FFFFFF#000000##FFFFFF
##2F4DA71.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B59AA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4da7;
/* rgb */ color: rgb(47, 77, 167);
/* oklch */ color: oklch(45.1% 0.149 266.5);
Tailwind
colors: {
  custom: {
    50: '#777ec2',
    500: '#2f4da7',
    950: '#000000',
  },
}
SCSS
$custom: #2f4da7;
$custom-light: #777ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4da7",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 167
  },
  "hsl": {
    "h": 225,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45063,
    "c": 0.14923,
    "h": 266.5
  },
  "luminance": 0.08702
}

Semantic roles & 50–950 ramp

primary
#2F4DA7
secondary
#C1AD71
accent
#BA48DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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