#2F4AA8#2F4AA8

#2F4AA8 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.5% C 0.154 H 267.6°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#2F4AA8
RGBrgb(47, 74, 168)
HSLhsl(227, 56%, 42%)
HSVhsv(227, 72%, 66%)
CMYKcmyk(72%, 56%, 0%, 34.1%)
CIE-LABlab(34.66, 22.98, -53.57)
CIE-LCHlch(34.66, 58.29, 293.21°)
OKLaboklab(44.53% -0.0066 -0.1543)
OKLCHoklch(44.53% 0.154 267.6)
XYZxyz(10.6865, 8.3280, 38.0825)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AA8 #A88D2F
analogous
#2F86A8 #2F4AA8 #512FA8
triadic
#2F4AA8 #A82F4A #4AA82F
tetradic
#2F4AA8 #A82F86 #A88D2F #2FA851
square
#2F4AA8 #A82F86 #A88D2F #2FA851
split-complementary
#2F4AA8 #A8512F #86A82F
monochromatic
#142048 #223578 #2F4AA8 #4866CC #788ED9

Accessibility & contrast

On white

7.88
#2F4AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4AA8
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AA8#FFFFFF#000000##FFFFFF
##2F4AA81.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4aa8;
/* rgb */ color: rgb(47, 74, 168);
/* oklch */ color: oklch(44.5% 0.154 267.6);
Tailwind
colors: {
  custom: {
    50: '#787cc3',
    500: '#2f4aa8',
    950: '#000000',
  },
}
SCSS
$custom: #2f4aa8;
$custom-light: #787cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4aa8",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 168
  },
  "hsl": {
    "h": 226.612,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44525,
    "c": 0.15445,
    "h": 267.6
  },
  "luminance": 0.08329
}

Semantic roles & 50–950 ramp

primary
#2F4AA8
secondary
#C1B071
accent
#BE48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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