#2F4DBE#2F4DBE

#2F4DBE is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.9% C 0.181 H 267.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#2F4DBE
RGBrgb(47, 77, 190)
HSLhsl(227, 60%, 46%)
HSVhsv(227, 75%, 75%)
CMYKcmyk(75.3%, 59.5%, 0%, 25.5%)
CIE-LABlab(37.17, 29.22, -62.50)
CIE-LCHlch(37.17, 68.99, 295.06°)
OKLaboklab(46.94% -0.008 -0.1805)
OKLCHoklch(46.94% 0.181 267.4)
XYZxyz(13.1172, 9.6284, 49.8724)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DBE #BEA02F
analogous
#2F95BE #2F4DBE #592FBE
triadic
#2F4DBE #BE2F4D #4DBE2F
tetradic
#2F4DBE #BE2F95 #BEA02F #2FBE59
square
#2F4DBE #BE2F95 #BEA02F #2FBE59
split-complementary
#2F4DBE #BE592F #95BE2F
monochromatic
#17255C #23398D #2F4DBE #5570D5 #8699E1

Accessibility & contrast

On white

7.18
#2F4DBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2F4DBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DBE
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DBE#FFFFFF#000000##FFFFFF
##2F4DBE1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#0051BC
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f4dbe;
/* rgb */ color: rgb(47, 77, 190);
/* oklch */ color: oklch(46.9% 0.181 267.4);
Tailwind
colors: {
  custom: {
    50: '#7d7ed2',
    500: '#2f4dbe',
    950: '#000000',
  },
}
SCSS
$custom: #2f4dbe;
$custom-light: #7d7ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4dbe",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 190
  },
  "hsl": {
    "h": 227.413,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46943,
    "c": 0.18068,
    "h": 267.4
  },
  "luminance": 0.0963
}

Semantic roles & 50–950 ramp

primary
#2F4DBE
secondary
#CBBB7E
accent
#C244E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F4DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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