#2F4FAE#2F4FAE

#2F4FAE is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.0% C 0.156 H 266.2°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#2F4FAE
RGBrgb(47, 79, 174)
HSLhsl(225, 57%, 43%)
HSVhsv(225, 73%, 68%)
CMYKcmyk(73%, 54.6%, 0%, 31.8%)
CIE-LABlab(36.46, 21.92, -54.22)
CIE-LCHlch(36.46, 58.48, 292.01°)
OKLaboklab(46.03% -0.0103 -0.1561)
OKLCHoklch(46.03% 0.156 266.2)
XYZxyz(11.6056, 9.2511, 41.2102)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FAE #AE8E2F
analogous
#2F8EAE #2F4FAE #4E2FAE
triadic
#2F4FAE #AE2F4F #4FAE2F
tetradic
#2F4FAE #AE2F8E #AE8E2F #2FAE4E
square
#2F4FAE #AE2F8E #AE8E2F #2FAE4E
split-complementary
#2F4FAE #AE4E2F #8EAE2F
monochromatic
#15234E #22397E #2F4FAE #4C6DCF #7C94DC

Accessibility & contrast

On white

7.37
#2F4FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2F4FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FAE
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FAE#FFFFFF#000000##FFFFFF
##2F4FAE1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB1
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4fae;
/* rgb */ color: rgb(47, 79, 174);
/* oklch */ color: oklch(46.0% 0.156 266.2);
Tailwind
colors: {
  custom: {
    50: '#797fc7',
    500: '#2f4fae',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fae;
$custom-light: #797fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fae",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 174
  },
  "hsl": {
    "h": 224.882,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46027,
    "c": 0.15646,
    "h": 266.2
  },
  "luminance": 0.09252
}

Semantic roles & 50–950 ramp

primary
#2F4FAE
secondary
#C4B075
accent
#BA47E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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