#2F4DA8#2F4DA8

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

Color values

HEX#2F4DA8
RGBrgb(47, 77, 168)
HSLhsl(225, 56%, 42%)
HSVhsv(225, 72%, 66%)
CMYKcmyk(72%, 54.2%, 0%, 34.1%)
CIE-LABlab(35.48, 20.98, -52.25)
CIE-LCHlch(35.48, 56.30, 291.88°)
OKLaboklab(45.14% -0.0091 -0.1504)
OKLCHoklch(45.14% 0.151 266.5)
XYZxyz(10.8916, 8.7381, 38.1508)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DA8 #A88A2F
analogous
#2F8AA8 #2F4DA8 #4E2FA8
triadic
#2F4DA8 #A82F4D #4DA82F
tetradic
#2F4DA8 #A82F8A #A88A2F #2FA84E
square
#2F4DA8 #A82F8A #A88A2F #2FA84E
split-complementary
#2F4DA8 #A84E2F #8AA82F
monochromatic
#142148 #223778 #2F4DA8 #4869CC #7890D9

Accessibility & contrast

On white

7.64
#2F4DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2F4DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DA8
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DA8#FFFFFF#000000##FFFFFF
##2F4DA81.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0759AB
Deuteranopia (green-blind)
#004EA6
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4da8;
/* rgb */ color: rgb(47, 77, 168);
/* oklch */ color: oklch(45.1% 0.151 266.5);
Tailwind
colors: {
  custom: {
    50: '#787ec2',
    500: '#2f4da8',
    950: '#000000',
  },
}
SCSS
$custom: #2f4da8;
$custom-light: #787ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4da8",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 168
  },
  "hsl": {
    "h": 225.124,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45142,
    "c": 0.15063,
    "h": 266.5
  },
  "luminance": 0.08739
}

Semantic roles & 50–950 ramp

primary
#2F4DA8
secondary
#C1AE71
accent
#BA48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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