#2F4DB0#2F4DB0

#2F4DB0 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.162 H 267.0°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#2F4DB0
RGBrgb(47, 77, 176)
HSLhsl(226, 58%, 44%)
HSVhsv(226, 73%, 69%)
CMYKcmyk(73.3%, 56.2%, 0%, 31%)
CIE-LABlab(36.07, 23.99, -56.04)
CIE-LCHlch(36.07, 60.96, 293.18°)
OKLaboklab(45.78% -0.0085 -0.1615)
OKLCHoklch(45.78% 0.162 267)
XYZxyz(11.6599, 9.0454, 42.1973)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DB0 #B0922F
analogous
#2F8DB0 #2F4DB0 #512FB0
triadic
#2F4DB0 #B02F4D #4DB02F
tetradic
#2F4DB0 #B02F8D #B0922F #2FB051
square
#2F4DB0 #B02F8D #B0922F #2FB051
split-complementary
#2F4DB0 #B0512F #8DB02F
monochromatic
#15234F #223880 #2F4DB0 #4D6BCF #7D93DC

Accessibility & contrast

On white

7.47
#2F4DB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2F4DB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DB0
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DB0#FFFFFF#000000##FFFFFF
##2F4DB01.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB3
Deuteranopia (green-blind)
#004FAE
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4db0;
/* rgb */ color: rgb(47, 77, 176);
/* oklch */ color: oklch(45.8% 0.162 267.0);
Tailwind
colors: {
  custom: {
    50: '#797ec8',
    500: '#2f4db0',
    950: '#000000',
  },
}
SCSS
$custom: #2f4db0;
$custom-light: #797ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4db0",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 176
  },
  "hsl": {
    "h": 226.047,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4578,
    "c": 0.16173,
    "h": 267
  },
  "luminance": 0.09047
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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