#2F4DBD#2F4DBD

#2F4DBD is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.9% C 0.179 H 267.4°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#2F4DBD
RGBrgb(47, 77, 189)
HSLhsl(227, 60%, 46%)
HSVhsv(227, 75%, 74%)
CMYKcmyk(75.1%, 59.3%, 0%, 25.9%)
CIE-LABlab(37.09, 28.85, -62.05)
CIE-LCHlch(37.09, 68.43, 294.94°)
OKLaboklab(46.86% -0.0081 -0.1792)
OKLCHoklch(46.86% 0.179 267.4)
XYZxyz(13.0083, 9.5848, 49.2987)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DBD #BD9F2F
analogous
#2F94BD #2F4DBD #582FBD
triadic
#2F4DBD #BD2F4D #4DBD2F
tetradic
#2F4DBD #BD2F94 #BD9F2F #2FBD58
square
#2F4DBD #BD2F94 #BD9F2F #2FBD58
split-complementary
#2F4DBD #BD582F #94BD2F
monochromatic
#17255B #23398C #2F4DBD #5570D5 #8699E1

Accessibility & contrast

On white

7.20
#2F4DBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2F4DBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DBD
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DBD#FFFFFF#000000##FFFFFF
##2F4DBD1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4dbd;
/* rgb */ color: rgb(47, 77, 189);
/* oklch */ color: oklch(46.9% 0.179 267.4);
Tailwind
colors: {
  custom: {
    50: '#7c7ed2',
    500: '#2f4dbd',
    950: '#000000',
  },
}
SCSS
$custom: #2f4dbd;
$custom-light: #7c7ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4dbd",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 189
  },
  "hsl": {
    "h": 227.324,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46858,
    "c": 0.17934,
    "h": 267.4
  },
  "luminance": 0.09586
}

Semantic roles & 50–950 ramp

primary
#2F4DBD
secondary
#CABA7E
accent
#C244E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F4DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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