#2F4FA2#2F4FA2

#2F4FA2 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.140 H 265.3°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#2F4FA2
RGBrgb(47, 79, 162)
HSLhsl(223, 55%, 41%)
HSVhsv(223, 71%, 64%)
CMYKcmyk(71%, 51.2%, 0%, 36.5%)
CIE-LABlab(35.60, 17.39, -48.45)
CIE-LCHlch(35.60, 51.48, 289.74°)
OKLaboklab(45.1% -0.0114 -0.1391)
OKLCHoklch(45.1% 0.14 265.3)
XYZxyz(10.4876, 8.8039, 35.3220)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FA2 #A2822F
analogous
#2F88A2 #2F4FA2 #482FA2
triadic
#2F4FA2 #A22F4F #4FA22F
tetradic
#2F4FA2 #A22F88 #A2822F #2FA248
square
#2F4FA2 #A22F88 #A2822F #2FA248
split-complementary
#2F4FA2 #A2482F #88A22F
monochromatic
#132143 #213873 #2F4FA2 #456AC9 #7590D7

Accessibility & contrast

On white

7.61
#2F4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2F4FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FA2
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FA2#FFFFFF#000000##FFFFFF
##2F4FA21.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D59A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4fa2;
/* rgb */ color: rgb(47, 79, 162);
/* oklch */ color: oklch(45.1% 0.140 265.3);
Tailwind
colors: {
  custom: {
    50: '#767fbe',
    500: '#2f4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fa2;
$custom-light: #767fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fa2",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 223.304,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45103,
    "c": 0.13962,
    "h": 265.3
  },
  "luminance": 0.08805
}

Semantic roles & 50–950 ramp

primary
#2F4FA2
secondary
#BFA86E
accent
#B549DE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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