#2F4FAC#2F4FAC

#2F4FAC is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.9% C 0.154 H 266.1°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#2F4FAC
RGBrgb(47, 79, 172)
HSLhsl(225, 57%, 43%)
HSVhsv(225, 73%, 67%)
CMYKcmyk(72.7%, 54.1%, 0%, 32.5%)
CIE-LABlab(36.32, 21.17, -53.27)
CIE-LCHlch(36.32, 57.32, 291.67°)
OKLaboklab(45.87% -0.0104 -0.1533)
OKLCHoklch(45.87% 0.154 266.1)
XYZxyz(11.4121, 9.1737, 40.1910)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FAC #AC8C2F
analogous
#2F8DAC #2F4FAC #4D2FAC
triadic
#2F4FAC #AC2F4F #4FAC2F
tetradic
#2F4FAC #AC2F8D #AC8C2F #2FAC4D
square
#2F4FAC #AC2F8D #AC8C2F #2FAC4D
split-complementary
#2F4FAC #AC4D2F #8DAC2F
monochromatic
#15234C #22397C #2F4FAC #4B6CCE #7B93DB

Accessibility & contrast

On white

7.41
#2F4FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4FAC
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FAC#FFFFFF#000000##FFFFFF
##2F4FAC1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075BAF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4fac;
/* rgb */ color: rgb(47, 79, 172);
/* oklch */ color: oklch(45.9% 0.154 266.1);
Tailwind
colors: {
  custom: {
    50: '#787fc5',
    500: '#2f4fac',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fac;
$custom-light: #787fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fac",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 172
  },
  "hsl": {
    "h": 224.64,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4587,
    "c": 0.15367,
    "h": 266.1
  },
  "luminance": 0.09175
}

Semantic roles & 50–950 ramp

primary
#2F4FAC
secondary
#C3AF74
accent
#B947E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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