#2F4DB2#2F4DB2

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

Color values

HEX#2F4DB2
RGBrgb(47, 77, 178)
HSLhsl(226, 58%, 44%)
HSVhsv(226, 74%, 70%)
CMYKcmyk(73.6%, 56.7%, 0%, 30.2%)
CIE-LABlab(36.22, 24.74, -56.97)
CIE-LCHlch(36.22, 62.11, 293.48°)
OKLaboklab(45.94% -0.0084 -0.1643)
OKLCHoklch(45.94% 0.164 267.1)
XYZxyz(11.8592, 9.1252, 43.2472)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DB2 #B2942F
analogous
#2F8FB2 #2F4DB2 #532FB2
triadic
#2F4DB2 #B22F4D #4DB22F
tetradic
#2F4DB2 #B22F8F #B2942F #2FB253
square
#2F4DB2 #B22F8F #B2942F #2FB253
split-complementary
#2F4DB2 #B2532F #8FB22F
monochromatic
#152351 #223882 #2F4DB2 #4E6CD0 #7E94DD

Accessibility & contrast

On white

7.43
#2F4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2F4DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DB2
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DB2#FFFFFF#000000##FFFFFF
##2F4DB21.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4db2;
/* rgb */ color: rgb(47, 77, 178);
/* oklch */ color: oklch(45.9% 0.164 267.1);
Tailwind
colors: {
  custom: {
    50: '#7a7eca',
    500: '#2f4db2',
    950: '#000000',
  },
}
SCSS
$custom: #2f4db2;
$custom-light: #7a7eca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4db2",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 226.26,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45942,
    "c": 0.16448,
    "h": 267.1
  },
  "luminance": 0.09126
}

Semantic roles & 50–950 ramp

primary
#2F4DB2
secondary
#C6B477
accent
#BE46E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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