#2F4BBB#2F4BBB

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

Color values

HEX#2F4BBB
RGBrgb(47, 75, 187)
HSLhsl(228, 60%, 46%)
HSVhsv(228, 75%, 73%)
CMYKcmyk(74.9%, 59.9%, 0%, 26.7%)
CIE-LABlab(36.41, 29.41, -61.98)
CIE-LCHlch(36.41, 68.60, 295.39°)
OKLaboklab(46.3% -0.0067 -0.179)
OKLCHoklch(46.3% 0.179 267.9)
XYZxyz(12.6549, 9.2230, 48.1173)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4BBB #BB9F2F
analogous
#2F91BB #2F4BBB #592FBB
triadic
#2F4BBB #BB2F4B #4BBB2F
tetradic
#2F4BBB #BB2F91 #BB9F2F #2FBB59
square
#2F4BBB #BB2F91 #BB9F2F #2FBB59
split-complementary
#2F4BBB #BB592F #91BB2F
monochromatic
#162459 #23378A #2F4BBB #536DD4 #8497E0

Accessibility & contrast

On white

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

On black

2.84
#2F4BBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F4BBB#FFFFFF#000000##FFFFFF
##2F4BBB1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#00677B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4bbb;
/* rgb */ color: rgb(47, 75, 187);
/* oklch */ color: oklch(46.3% 0.179 267.9);
Tailwind
colors: {
  custom: {
    50: '#7c7dd0',
    500: '#2f4bbb',
    950: '#000000',
  },
}
SCSS
$custom: #2f4bbb;
$custom-light: #7c7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4bbb",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 187
  },
  "hsl": {
    "h": 228,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46303,
    "c": 0.17911,
    "h": 267.9
  },
  "luminance": 0.09224
}

Semantic roles & 50–950 ramp

primary
#2F4BBB
secondary
#C9BA7C
accent
#C345E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F4BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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