#2F4AA7#2F4AA7

#2F4AA7 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.4% C 0.153 H 267.5°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#2F4AA7
RGBrgb(47, 74, 167)
HSLhsl(227, 56%, 42%)
HSVhsv(227, 72%, 65%)
CMYKcmyk(71.9%, 55.7%, 0%, 34.5%)
CIE-LABlab(34.58, 22.60, -53.10)
CIE-LCHlch(34.58, 57.71, 293.06°)
OKLaboklab(44.44% -0.0066 -0.1529)
OKLCHoklch(44.44% 0.153 267.5)
XYZxyz(10.5937, 8.2908, 37.5937)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AA7 #A78C2F
analogous
#2F86A7 #2F4AA7 #502FA7
triadic
#2F4AA7 #A72F4A #4AA72F
tetradic
#2F4AA7 #A72F86 #A78C2F #2FA750
square
#2F4AA7 #A72F86 #A78C2F #2FA750
split-complementary
#2F4AA7 #A7502F #86A72F
monochromatic
#142047 #223577 #2F4AA7 #4865CB #788DD9

Accessibility & contrast

On white

7.90
#2F4AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2F4AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AA7
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AA7#FFFFFF#000000##FFFFFF
##2F4AA71.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4aa7;
/* rgb */ color: rgb(47, 74, 167);
/* oklch */ color: oklch(44.4% 0.153 267.5);
Tailwind
colors: {
  custom: {
    50: '#777cc2',
    500: '#2f4aa7',
    950: '#000000',
  },
}
SCSS
$custom: #2f4aa7;
$custom-light: #777cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4aa7",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 167
  },
  "hsl": {
    "h": 226.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44444,
    "c": 0.15305,
    "h": 267.5
  },
  "luminance": 0.08292
}

Semantic roles & 50–950 ramp

primary
#2F4AA7
secondary
#C1AF71
accent
#BD48DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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