#2F4FBE#2F4FBE

#2F4FBE is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.178 H 267.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#2F4FBE
RGBrgb(47, 79, 190)
HSLhsl(227, 60%, 46%)
HSVhsv(227, 75%, 75%)
CMYKcmyk(75.3%, 58.4%, 0%, 25.5%)
CIE-LABlab(37.69, 27.92, -61.66)
CIE-LCHlch(37.69, 67.68, 294.36°)
OKLaboklab(47.33% -0.0094 -0.178)
OKLCHoklch(47.33% 0.178 267)
XYZxyz(13.2593, 9.9126, 49.9197)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FBE #BE9E2F
analogous
#2F97BE #2F4FBE #562FBE
triadic
#2F4FBE #BE2F4F #4FBE2F
tetradic
#2F4FBE #BE2F97 #BE9E2F #2FBE56
square
#2F4FBE #BE2F97 #BE9E2F #2FBE56
split-complementary
#2F4FBE #BE562F #97BE2F
monochromatic
#17265C #233B8D #2F4FBE #5572D5 #869BE1

Accessibility & contrast

On white

7.04
#2F4FBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2F4FBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FBE
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FBE#FFFFFF#000000##FFFFFF
##2F4FBE1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#0052BC
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f4fbe;
/* rgb */ color: rgb(47, 79, 190);
/* oklch */ color: oklch(47.3% 0.178 267.0);
Tailwind
colors: {
  custom: {
    50: '#7c7fd2',
    500: '#2f4fbe',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fbe;
$custom-light: #7c7fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fbe",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 190
  },
  "hsl": {
    "h": 226.573,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47329,
    "c": 0.17824,
    "h": 267
  },
  "luminance": 0.09914
}

Semantic roles & 50–950 ramp

primary
#2F4FBE
secondary
#CBBA7E
accent
#C044E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F4FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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