#2F4BBA#2F4BBA

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

Color values

HEX#2F4BBA
RGBrgb(47, 75, 186)
HSLhsl(228, 60%, 46%)
HSVhsv(228, 75%, 73%)
CMYKcmyk(74.7%, 59.7%, 0%, 27.1%)
CIE-LABlab(36.33, 29.04, -61.52)
CIE-LCHlch(36.33, 68.03, 295.27°)
OKLaboklab(46.22% -0.0067 -0.1776)
OKLCHoklch(46.22% 0.178 267.8)
XYZxyz(12.5482, 9.1803, 47.5555)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4BBA #BA9E2F
analogous
#2F90BA #2F4BBA #592FBA
triadic
#2F4BBA #BA2F4B #4BBA2F
tetradic
#2F4BBA #BA2F90 #BA9E2F #2FBA59
square
#2F4BBA #BA2F90 #BA9E2F #2FBA59
split-complementary
#2F4BBA #BA592F #90BA2F
monochromatic
#162458 #233789 #2F4BBA #536DD3 #8496E0

Accessibility & contrast

On white

7.40
#2F4BBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4BBA
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4BBA#FFFFFF#000000##FFFFFF
##2F4BBA1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#00677B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4bba;
/* rgb */ color: rgb(47, 75, 186);
/* oklch */ color: oklch(46.2% 0.178 267.8);
Tailwind
colors: {
  custom: {
    50: '#7c7dd0',
    500: '#2f4bba',
    950: '#000000',
  },
}
SCSS
$custom: #2f4bba;
$custom-light: #7c7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4bba",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 186
  },
  "hsl": {
    "h": 227.914,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46218,
    "c": 0.17777,
    "h": 267.8
  },
  "luminance": 0.09182
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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