#2F4EA9#2F4EA9

#2F4EA9 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.151 H 266.3°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#2F4EA9
RGBrgb(47, 78, 169)
HSLhsl(225, 56%, 42%)
HSVhsv(225, 72%, 66%)
CMYKcmyk(72.2%, 53.8%, 0%, 33.7%)
CIE-LABlab(35.82, 20.70, -52.28)
CIE-LCHlch(35.82, 56.23, 291.60°)
OKLaboklab(45.43% -0.0098 -0.1504)
OKLCHoklch(45.43% 0.151 266.3)
XYZxyz(11.0556, 8.9165, 38.6668)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EA9 #A98A2F
analogous
#2F8BA9 #2F4EA9 #4D2FA9
triadic
#2F4EA9 #A92F4E #4EA92F
tetradic
#2F4EA9 #A92F8B #A98A2F #2FA94D
square
#2F4EA9 #A92F8B #A98A2F #2FA94D
split-complementary
#2F4EA9 #A94D2F #8BA92F
monochromatic
#142249 #223879 #2F4EA9 #496ACC #7991DA

Accessibility & contrast

On white

7.54
#2F4EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2F4EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EA9
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EA9#FFFFFF#000000##FFFFFF
##2F4EA91.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5AAC
Deuteranopia (green-blind)
#004FA7
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4ea9;
/* rgb */ color: rgb(47, 78, 169);
/* oklch */ color: oklch(45.4% 0.151 266.3);
Tailwind
colors: {
  custom: {
    50: '#787fc3',
    500: '#2f4ea9',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ea9;
$custom-light: #787fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ea9",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 169
  },
  "hsl": {
    "h": 224.754,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45428,
    "c": 0.15076,
    "h": 266.3
  },
  "luminance": 0.08918
}

Semantic roles & 50–950 ramp

primary
#2F4EA9
secondary
#C2AE72
accent
#B948E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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