#2F4AA6#2F4AA6

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

Color values

HEX#2F4AA6
RGBrgb(47, 74, 166)
HSLhsl(226, 56%, 42%)
HSVhsv(226, 72%, 65%)
CMYKcmyk(71.7%, 55.4%, 0%, 34.9%)
CIE-LABlab(34.51, 22.23, -52.62)
CIE-LCHlch(34.51, 57.12, 292.90°)
OKLaboklab(44.36% -0.0067 -0.1515)
OKLCHoklch(44.36% 0.152 267.5)
XYZxyz(10.5016, 8.2540, 37.1087)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AA6 #A68B2F
analogous
#2F86A6 #2F4AA6 #502FA6
triadic
#2F4AA6 #A62F4A #4AA62F
tetradic
#2F4AA6 #A62F86 #A68B2F #2FA650
square
#2F4AA6 #A62F86 #A68B2F #2FA650
split-complementary
#2F4AA6 #A6502F #86A62F
monochromatic
#141F47 #213576 #2F4AA6 #4765CB #778DD8

Accessibility & contrast

On white

7.92
#2F4AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2F4AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AA6
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AA6#FFFFFF#000000##FFFFFF
##2F4AA61.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#004CA4
Tritanopia (blue-blind)
#006070
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4aa6;
/* rgb */ color: rgb(47, 74, 166);
/* oklch */ color: oklch(44.4% 0.152 267.5);
Tailwind
colors: {
  custom: {
    50: '#777cc1',
    500: '#2f4aa6',
    950: '#000000',
  },
}
SCSS
$custom: #2f4aa6;
$custom-light: #777cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4aa6",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 166
  },
  "hsl": {
    "h": 226.387,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44364,
    "c": 0.15166,
    "h": 267.5
  },
  "luminance": 0.08255
}

Semantic roles & 50–950 ramp

primary
#2F4AA6
secondary
#C1AE70
accent
#BD49DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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