#2F4AA1#2F4AA1

#2F4AA1 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.0% C 0.145 H 267.2°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#2F4AA1
RGBrgb(47, 74, 161)
HSLhsl(226, 55%, 41%)
HSVhsv(226, 71%, 63%)
CMYKcmyk(70.8%, 54%, 0%, 36.9%)
CIE-LABlab(34.14, 20.34, -50.22)
CIE-LCHlch(34.14, 54.19, 292.05°)
OKLaboklab(43.97% -0.0071 -0.1444)
OKLCHoklch(43.97% 0.145 267.2)
XYZxyz(10.0519, 8.0741, 34.7400)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AA1 #A1862F
analogous
#2F83A1 #2F4AA1 #4D2FA1
triadic
#2F4AA1 #A12F4A #4AA12F
tetradic
#2F4AA1 #A12F83 #A1862F #2FA14D
square
#2F4AA1 #A12F83 #A1862F #2FA14D
split-complementary
#2F4AA1 #A14D2F #83A12F
monochromatic
#131E42 #213472 #2F4AA1 #4564C9 #748BD6

Accessibility & contrast

On white

8.03
#2F4AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2F4AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AA1
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AA1#FFFFFF#000000##FFFFFF
##2F4AA11.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B56A4
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4aa1;
/* rgb */ color: rgb(47, 74, 161);
/* oklch */ color: oklch(44.0% 0.145 267.2);
Tailwind
colors: {
  custom: {
    50: '#767cbd',
    500: '#2f4aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2f4aa1;
$custom-light: #767cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4aa1",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 161
  },
  "hsl": {
    "h": 225.789,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43968,
    "c": 0.14461,
    "h": 267.2
  },
  "luminance": 0.08075
}

Semantic roles & 50–950 ramp

primary
#2F4AA1
secondary
#BEAB6E
accent
#BB4ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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