#2F4DB1#2F4DB1

#2F4DB1 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.9% C 0.163 H 267.0°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#2F4DB1
RGBrgb(47, 77, 177)
HSLhsl(226, 58%, 44%)
HSVhsv(226, 73%, 69%)
CMYKcmyk(73.4%, 56.5%, 0%, 30.6%)
CIE-LABlab(36.15, 24.37, -56.51)
CIE-LCHlch(36.15, 61.54, 293.33°)
OKLaboklab(45.86% -0.0085 -0.1629)
OKLCHoklch(45.86% 0.163 267)
XYZxyz(11.7592, 9.0852, 42.7203)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DB1 #B1932F
analogous
#2F8EB1 #2F4DB1 #522FB1
triadic
#2F4DB1 #B12F4D #4DB12F
tetradic
#2F4DB1 #B12F8E #B1932F #2FB152
square
#2F4DB1 #B12F8E #B1932F #2FB152
split-complementary
#2F4DB1 #B1522F #8EB12F
monochromatic
#152350 #223881 #2F4DB1 #4D6BD0 #7E94DD

Accessibility & contrast

On white

7.45
#2F4DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2F4DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DB1
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DB1#FFFFFF#000000##FFFFFF
##2F4DB11.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4db1;
/* rgb */ color: rgb(47, 77, 177);
/* oklch */ color: oklch(45.9% 0.163 267.0);
Tailwind
colors: {
  custom: {
    50: '#7a7ec9',
    500: '#2f4db1',
    950: '#000000',
  },
}
SCSS
$custom: #2f4db1;
$custom-light: #7a7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4db1",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 177
  },
  "hsl": {
    "h": 226.154,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45861,
    "c": 0.1631,
    "h": 267
  },
  "luminance": 0.09086
}

Semantic roles & 50–950 ramp

primary
#2F4DB1
secondary
#C5B376
accent
#BE47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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