#2F4BA5#2F4BA5

#2F4BA5 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.5% C 0.149 H 267.1°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2F4BA5
RGBrgb(47, 75, 165)
HSLhsl(226, 56%, 42%)
HSVhsv(226, 72%, 65%)
CMYKcmyk(71.5%, 54.5%, 0%, 35.3%)
CIE-LABlab(34.71, 21.18, -51.70)
CIE-LCHlch(34.71, 55.87, 292.28°)
OKLaboklab(44.49% -0.0076 -0.1488)
OKLCHoklch(44.49% 0.149 267.1)
XYZxyz(10.4775, 8.3520, 36.6499)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4BA5 #A5892F
analogous
#2F86A5 #2F4BA5 #4E2FA5
triadic
#2F4BA5 #A52F4B #4BA52F
tetradic
#2F4BA5 #A52F86 #A5892F #2FA54E
square
#2F4BA5 #A52F86 #A5892F #2FA54E
split-complementary
#2F4BA5 #A54E2F #86A52F
monochromatic
#142046 #213575 #2F4BA5 #4766CB #768ED8

Accessibility & contrast

On white

7.86
#2F4BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4BA5
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4BA5#FFFFFF#000000##FFFFFF
##2F4BA51.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0457A8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4ba5;
/* rgb */ color: rgb(47, 75, 165);
/* oklch */ color: oklch(44.5% 0.149 267.1);
Tailwind
colors: {
  custom: {
    50: '#777cc0',
    500: '#2f4ba5',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ba5;
$custom-light: #777cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ba5",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 165
  },
  "hsl": {
    "h": 225.763,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44491,
    "c": 0.14897,
    "h": 267.1
  },
  "luminance": 0.08353
}

Semantic roles & 50–950 ramp

primary
#2F4BA5
secondary
#C0AD70
accent
#BB49DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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