#2F4DBC#2F4DBC

#2F4DBC is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.8% C 0.178 H 267.4°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#2F4DBC
RGBrgb(47, 77, 188)
HSLhsl(227, 60%, 46%)
HSVhsv(227, 75%, 74%)
CMYKcmyk(75%, 59%, 0%, 26.3%)
CIE-LABlab(37.01, 28.48, -61.59)
CIE-LCHlch(37.01, 67.86, 294.81°)
OKLaboklab(46.77% -0.0081 -0.1778)
OKLCHoklch(46.77% 0.178 267.4)
XYZxyz(12.9001, 9.5415, 48.7290)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DBC #BC9E2F
analogous
#2F93BC #2F4DBC #572FBC
triadic
#2F4DBC #BC2F4D #4DBC2F
tetradic
#2F4DBC #BC2F93 #BC9E2F #2FBC57
square
#2F4DBC #BC2F93 #BC9E2F #2FBC57
split-complementary
#2F4DBC #BC572F #93BC2F
monochromatic
#17255A #23398B #2F4DBC #546FD4 #8598E0

Accessibility & contrast

On white

7.22
#2F4DBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2F4DBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DBC
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DBC#FFFFFF#000000##FFFFFF
##2F4DBC1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#00697D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f4dbc;
/* rgb */ color: rgb(47, 77, 188);
/* oklch */ color: oklch(46.8% 0.178 267.4);
Tailwind
colors: {
  custom: {
    50: '#7c7ed1',
    500: '#2f4dbc',
    950: '#000000',
  },
}
SCSS
$custom: #2f4dbc;
$custom-light: #7c7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4dbc",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 188
  },
  "hsl": {
    "h": 227.234,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46773,
    "c": 0.178,
    "h": 267.4
  },
  "luminance": 0.09543
}

Semantic roles & 50–950 ramp

primary
#2F4DBC
secondary
#CABA7D
accent
#C145E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F4DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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