#2F4CB8#2F4CB8

#2F4CB8 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.174 H 267.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#2F4CB8
RGBrgb(47, 76, 184)
HSLhsl(227, 59%, 45%)
HSVhsv(227, 74%, 72%)
CMYKcmyk(74.5%, 58.7%, 0%, 27.8%)
CIE-LABlab(36.43, 27.64, -60.18)
CIE-LCHlch(36.43, 66.23, 294.67°)
OKLaboklab(46.24% -0.0075 -0.1737)
OKLCHoklch(46.24% 0.174 267.5)
XYZxyz(12.4055, 9.2326, 46.4664)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CB8 #B89B2F
analogous
#2F91B8 #2F4CB8 #562FB8
triadic
#2F4CB8 #B82F4C #4CB82F
tetradic
#2F4CB8 #B82F91 #B89B2F #2FB856
square
#2F4CB8 #B82F91 #B89B2F #2FB856
split-complementary
#2F4CB8 #B8562F #91B82F
monochromatic
#162457 #233887 #2F4CB8 #526DD3 #8296DF

Accessibility & contrast

On white

7.38
#2F4CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2F4CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4CB8
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CB8#FFFFFF#000000##FFFFFF
##2F4CB81.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#0050B6
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4cb8;
/* rgb */ color: rgb(47, 76, 184);
/* oklch */ color: oklch(46.2% 0.174 267.5);
Tailwind
colors: {
  custom: {
    50: '#7b7dce',
    500: '#2f4cb8',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cb8;
$custom-light: #7b7dce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cb8",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 184
  },
  "hsl": {
    "h": 227.299,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46242,
    "c": 0.17386,
    "h": 267.5
  },
  "luminance": 0.09234
}

Semantic roles & 50–950 ramp

primary
#2F4CB8
secondary
#C8B87B
accent
#C145E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F4CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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