#2F4DB9#2F4DB9

#2F4DB9 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.174 H 267.3°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#2F4DB9
RGBrgb(47, 77, 185)
HSLhsl(227, 59%, 45%)
HSVhsv(227, 75%, 73%)
CMYKcmyk(74.6%, 58.4%, 0%, 27.5%)
CIE-LABlab(36.77, 27.36, -60.22)
CIE-LCHlch(36.77, 66.14, 294.44°)
OKLaboklab(46.52% -0.0081 -0.1738)
OKLCHoklch(46.52% 0.174 267.3)
XYZxyz(12.5801, 9.4135, 47.0435)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DB9 #B99B2F
analogous
#2F92B9 #2F4DB9 #562FB9
triadic
#2F4DB9 #B92F4D #4DB92F
tetradic
#2F4DB9 #B92F92 #B99B2F #2FB956
square
#2F4DB9 #B92F92 #B99B2F #2FB956
split-complementary
#2F4DB9 #B9562F #92B92F
monochromatic
#162457 #233988 #2F4DB9 #526ED3 #8397DF

Accessibility & contrast

On white

7.28
#2F4DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2F4DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DB9
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DB9#FFFFFF#000000##FFFFFF
##2F4DB91.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4db9;
/* rgb */ color: rgb(47, 77, 185);
/* oklch */ color: oklch(46.5% 0.174 267.3);
Tailwind
colors: {
  custom: {
    50: '#7b7ecf',
    500: '#2f4db9',
    950: '#000000',
  },
}
SCSS
$custom: #2f4db9;
$custom-light: #7b7ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4db9",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 185
  },
  "hsl": {
    "h": 226.957,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46521,
    "c": 0.17398,
    "h": 267.3
  },
  "luminance": 0.09415
}

Semantic roles & 50–950 ramp

primary
#2F4DB9
secondary
#C9B87B
accent
#C045E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F4DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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