#2F4AAF#2F4AAF

#2F4AAF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.1% C 0.164 H 267.8°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#2F4AAF
RGBrgb(47, 74, 175)
HSLhsl(227, 58%, 44%)
HSVhsv(227, 73%, 69%)
CMYKcmyk(73.1%, 57.7%, 0%, 31.4%)
CIE-LABlab(35.19, 25.60, -56.87)
CIE-LCHlch(35.19, 62.37, 294.24°)
OKLaboklab(45.1% -0.0062 -0.164)
OKLCHoklch(45.1% 0.164 267.8)
XYZxyz(11.3563, 8.5958, 41.6098)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AAF #AF942F
analogous
#2F8AAF #2F4AAF #542FAF
triadic
#2F4AAF #AF2F4A #4AAF2F
tetradic
#2F4AAF #AF2F8A #AF942F #2FAF54
square
#2F4AAF #AF2F8A #AF942F #2FAF54
split-complementary
#2F4AAF #AF542F #8AAF2F
monochromatic
#15214F #22367F #2F4AAF #4C68CF #7C91DC

Accessibility & contrast

On white

7.72
#2F4AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4AAF
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AAF#FFFFFF#000000##FFFFFF
##2F4AAF1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4aaf;
/* rgb */ color: rgb(47, 74, 175);
/* oklch */ color: oklch(45.1% 0.164 267.8);
Tailwind
colors: {
  custom: {
    50: '#797cc8',
    500: '#2f4aaf',
    950: '#000000',
  },
}
SCSS
$custom: #2f4aaf;
$custom-light: #797cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4aaf",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 227.344,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45097,
    "c": 0.16412,
    "h": 267.8
  },
  "luminance": 0.08597
}

Semantic roles & 50–950 ramp

primary
#2F4AAF
secondary
#C4B475
accent
#C047E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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