#2F4DBF#2F4DBF

#2F4DBF is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.0% C 0.182 H 267.5°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#2F4DBF
RGBrgb(47, 77, 191)
HSLhsl(228, 61%, 47%)
HSVhsv(228, 75%, 75%)
CMYKcmyk(75.4%, 59.7%, 0%, 25.1%)
CIE-LABlab(37.25, 29.59, -62.96)
CIE-LCHlch(37.25, 69.56, 295.17°)
OKLaboklab(47.03% -0.008 -0.1818)
OKLCHoklch(47.03% 0.182 267.5)
XYZxyz(13.2269, 9.6722, 50.4499)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DBF #BFA12F
analogous
#2F95BF #2F4DBF #592FBF
triadic
#2F4DBF #BF2F4D #4DBF2F
tetradic
#2F4DBF #BF2F95 #BFA12F #2FBF59
square
#2F4DBF #BF2F95 #BFA12F #2FBF59
split-complementary
#2F4DBF #BF592F #95BF2F
monochromatic
#17255D #23398E #2F4DBF #5670D5 #879AE1

Accessibility & contrast

On white

7.16
#2F4DBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4DBF
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DBF#FFFFFF#000000##FFFFFF
##2F4DBF1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f4dbf;
/* rgb */ color: rgb(47, 77, 191);
/* oklch */ color: oklch(47.0% 0.182 267.5);
Tailwind
colors: {
  custom: {
    50: '#7d7ed3',
    500: '#2f4dbf',
    950: '#000000',
  },
}
SCSS
$custom: #2f4dbf;
$custom-light: #7d7ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4dbf",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 191
  },
  "hsl": {
    "h": 227.5,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47028,
    "c": 0.18201,
    "h": 267.5
  },
  "luminance": 0.09674
}

Semantic roles & 50–950 ramp

primary
#2F4DBF
secondary
#CBBB7F
accent
#C244E4
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F4DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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