#2F4DBA#2F4DBA

#2F4DBA is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.175 H 267.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#2F4DBA
RGBrgb(47, 77, 186)
HSLhsl(227, 60%, 46%)
HSVhsv(227, 75%, 73%)
CMYKcmyk(74.7%, 58.6%, 0%, 27.1%)
CIE-LABlab(36.85, 27.73, -60.68)
CIE-LCHlch(36.85, 66.71, 294.56°)
OKLaboklab(46.61% -0.0081 -0.1751)
OKLCHoklch(46.61% 0.175 267.3)
XYZxyz(12.6860, 9.4559, 47.6014)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DBA #BA9C2F
analogous
#2F93BA #2F4DBA #562FBA
triadic
#2F4DBA #BA2F4D #4DBA2F
tetradic
#2F4DBA #BA2F93 #BA9C2F #2FBA56
square
#2F4DBA #BA2F93 #BA9C2F #2FBA56
split-complementary
#2F4DBA #BA562F #93BA2F
monochromatic
#162558 #233989 #2F4DBA #536FD3 #8497E0

Accessibility & contrast

On white

7.26
#2F4DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2F4DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DBA
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DBA#FFFFFF#000000##FFFFFF
##2F4DBA1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f4dba;
/* rgb */ color: rgb(47, 77, 186);
/* oklch */ color: oklch(46.6% 0.175 267.3);
Tailwind
colors: {
  custom: {
    50: '#7c7ed0',
    500: '#2f4dba',
    950: '#000000',
  },
}
SCSS
$custom: #2f4dba;
$custom-light: #7c7ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4dba",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 227.05,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46605,
    "c": 0.17532,
    "h": 267.3
  },
  "luminance": 0.09457
}

Semantic roles & 50–950 ramp

primary
#2F4DBA
secondary
#C9B87C
accent
#C145E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F4DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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