#2F4AA9#2F4AA9

#2F4AA9 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.6% C 0.156 H 267.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2F4AA9
RGBrgb(47, 74, 169)
HSLhsl(227, 56%, 42%)
HSVhsv(227, 72%, 66%)
CMYKcmyk(72.2%, 56.2%, 0%, 33.7%)
CIE-LABlab(34.73, 23.35, -54.05)
CIE-LCHlch(34.73, 58.88, 293.37°)
OKLaboklab(44.61% -0.0065 -0.1557)
OKLCHoklch(44.61% 0.156 267.6)
XYZxyz(10.7800, 8.3654, 38.5750)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AA9 #A98E2F
analogous
#2F87A9 #2F4AA9 #512FA9
triadic
#2F4AA9 #A92F4A #4AA92F
tetradic
#2F4AA9 #A92F87 #A98E2F #2FA951
square
#2F4AA9 #A92F87 #A98E2F #2FA951
split-complementary
#2F4AA9 #A9512F #87A92F
monochromatic
#142049 #223579 #2F4AA9 #4966CC #798EDA

Accessibility & contrast

On white

7.86
#2F4AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2F4AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AA9
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AA9#FFFFFF#000000##FFFFFF
##2F4AA91.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AC
Deuteranopia (green-blind)
#004CA7
Tritanopia (blue-blind)
#006172
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4aa9;
/* rgb */ color: rgb(47, 74, 169);
/* oklch */ color: oklch(44.6% 0.156 267.6);
Tailwind
colors: {
  custom: {
    50: '#787cc3',
    500: '#2f4aa9',
    950: '#000000',
  },
}
SCSS
$custom: #2f4aa9;
$custom-light: #787cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4aa9",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 169
  },
  "hsl": {
    "h": 226.721,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44606,
    "c": 0.15584,
    "h": 267.6
  },
  "luminance": 0.08366
}

Semantic roles & 50–950 ramp

primary
#2F4AA9
secondary
#C2B072
accent
#BE48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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