#2F4CBA#2F4CBA

#2F4CBA is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.177 H 267.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#2F4CBA
RGBrgb(47, 76, 186)
HSLhsl(227, 60%, 46%)
HSVhsv(227, 75%, 73%)
CMYKcmyk(74.7%, 59.1%, 0%, 27.1%)
CIE-LABlab(36.59, 28.39, -61.10)
CIE-LCHlch(36.59, 67.37, 294.92°)
OKLaboklab(46.41% -0.0074 -0.1764)
OKLCHoklch(46.41% 0.177 267.6)
XYZxyz(12.6166, 9.3170, 47.5783)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CBA #BA9D2F
analogous
#2F91BA #2F4CBA #572FBA
triadic
#2F4CBA #BA2F4C #4CBA2F
tetradic
#2F4CBA #BA2F91 #BA9D2F #2FBA57
square
#2F4CBA #BA2F91 #BA9D2F #2FBA57
split-complementary
#2F4CBA #BA572F #91BA2F
monochromatic
#162458 #233889 #2F4CBA #536ED3 #8497E0

Accessibility & contrast

On white

7.33
#2F4CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2F4CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4CBA
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CBA#FFFFFF#000000##FFFFFF
##2F4CBA1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4cba;
/* rgb */ color: rgb(47, 76, 186);
/* oklch */ color: oklch(46.4% 0.177 267.6);
Tailwind
colors: {
  custom: {
    50: '#7c7dd0',
    500: '#2f4cba',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cba;
$custom-light: #7c7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cba",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 186
  },
  "hsl": {
    "h": 227.482,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46411,
    "c": 0.17655,
    "h": 267.6
  },
  "luminance": 0.09318
}

Semantic roles & 50–950 ramp

primary
#2F4CBA
secondary
#C9B97C
accent
#C245E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F4CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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