#2F4CB4#2F4CB4

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

Color values

HEX#2F4CB4
RGBrgb(47, 76, 180)
HSLhsl(227, 59%, 45%)
HSVhsv(227, 74%, 71%)
CMYKcmyk(73.9%, 57.8%, 0%, 29.4%)
CIE-LABlab(36.11, 26.15, -58.34)
CIE-LCHlch(36.11, 63.93, 294.15°)
OKLaboklab(45.91% -0.0076 -0.1683)
OKLCHoklch(45.91% 0.168 267.4)
XYZxyz(11.9921, 9.0672, 44.2893)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CB4 #B4972F
analogous
#2F8FB4 #2F4CB4 #542FB4
triadic
#2F4CB4 #B42F4C #4CB42F
tetradic
#2F4CB4 #B42F8F #B4972F #2FB454
square
#2F4CB4 #B42F8F #B4972F #2FB454
split-complementary
#2F4CB4 #B4542F #8FB42F
monochromatic
#162353 #223883 #2F4CB4 #4F6BD1 #8094DE

Accessibility & contrast

On white

7.46
#2F4CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4CB4
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CB4#FFFFFF#000000##FFFFFF
##2F4CB41.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4cb4;
/* rgb */ color: rgb(47, 76, 180);
/* oklch */ color: oklch(45.9% 0.168 267.4);
Tailwind
colors: {
  custom: {
    50: '#7a7dcb',
    500: '#2f4cb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cb4;
$custom-light: #7a7dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cb4",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 180
  },
  "hsl": {
    "h": 226.917,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45908,
    "c": 0.16845,
    "h": 267.4
  },
  "luminance": 0.09069
}

Semantic roles & 50–950 ramp

primary
#2F4CB4
secondary
#C7B678
accent
#C046E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F4CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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