#2F4EAE#2F4EAE

#2F4EAE is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.8% C 0.158 H 266.6°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#2F4EAE
RGBrgb(47, 78, 174)
HSLhsl(225, 57%, 43%)
HSVhsv(225, 73%, 68%)
CMYKcmyk(73%, 55.2%, 0%, 31.8%)
CIE-LABlab(36.19, 22.58, -54.66)
CIE-LCHlch(36.19, 59.14, 292.45°)
OKLaboklab(45.82% -0.0094 -0.1574)
OKLCHoklch(45.82% 0.158 266.6)
XYZxyz(11.5340, 9.1079, 41.1863)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EAE #AE8F2F
analogous
#2F8DAE #2F4EAE #4F2FAE
triadic
#2F4EAE #AE2F4E #4EAE2F
tetradic
#2F4EAE #AE2F8D #AE8F2F #2FAE4F
square
#2F4EAE #AE2F8D #AE8F2F #2FAE4F
split-complementary
#2F4EAE #AE4F2F #8DAE2F
monochromatic
#15234E #22387E #2F4EAE #4C6CCF #7C93DC

Accessibility & contrast

On white

7.44
#2F4EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2F4EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EAE
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EAE#FFFFFF#000000##FFFFFF
##2F4EAE1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4eae;
/* rgb */ color: rgb(47, 78, 174);
/* oklch */ color: oklch(45.8% 0.158 266.6);
Tailwind
colors: {
  custom: {
    50: '#797fc7',
    500: '#2f4eae',
    950: '#000000',
  },
}
SCSS
$custom: #2f4eae;
$custom-light: #797fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4eae",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 174
  },
  "hsl": {
    "h": 225.354,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45822,
    "c": 0.15771,
    "h": 266.6
  },
  "luminance": 0.09109
}

Semantic roles & 50–950 ramp

primary
#2F4EAE
secondary
#C4B175
accent
#BB47E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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