#2F4AA5#2F4AA5

#2F4AA5 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.3% C 0.150 H 267.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#2F4AA5
RGBrgb(47, 74, 165)
HSLhsl(226, 56%, 42%)
HSVhsv(226, 72%, 65%)
CMYKcmyk(71.5%, 55.2%, 0%, 35.3%)
CIE-LABlab(34.43, 21.85, -52.14)
CIE-LCHlch(34.43, 56.54, 292.73°)
OKLaboklab(44.28% -0.0068 -0.1501)
OKLCHoklch(44.28% 0.15 267.4)
XYZxyz(10.4102, 8.2174, 36.6275)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AA5 #A58A2F
analogous
#2F85A5 #2F4AA5 #4F2FA5
triadic
#2F4AA5 #A52F4A #4AA52F
tetradic
#2F4AA5 #A52F85 #A58A2F #2FA54F
square
#2F4AA5 #A52F85 #A58A2F #2FA54F
split-complementary
#2F4AA5 #A54F2F #85A52F
monochromatic
#141F46 #213575 #2F4AA5 #4765CB #768DD8

Accessibility & contrast

On white

7.94
#2F4AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2F4AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AA5
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AA5#FFFFFF#000000##FFFFFF
##2F4AA51.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4aa5;
/* rgb */ color: rgb(47, 74, 165);
/* oklch */ color: oklch(44.3% 0.150 267.4);
Tailwind
colors: {
  custom: {
    50: '#777cc0',
    500: '#2f4aa5',
    950: '#000000',
  },
}
SCSS
$custom: #2f4aa5;
$custom-light: #777cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4aa5",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 165
  },
  "hsl": {
    "h": 226.271,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44284,
    "c": 0.15025,
    "h": 267.4
  },
  "luminance": 0.08219
}

Semantic roles & 50–950 ramp

primary
#2F4AA5
secondary
#C0AE70
accent
#BD49DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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