#2F4DA2#2F4DA2

#2F4DA2 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.7% C 0.142 H 266.1°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#2F4DA2
RGBrgb(47, 77, 162)
HSLhsl(224, 55%, 41%)
HSVhsv(224, 71%, 64%)
CMYKcmyk(71%, 52.5%, 0%, 36.5%)
CIE-LABlab(35.04, 18.72, -49.36)
CIE-LCHlch(35.04, 52.79, 290.77°)
OKLaboklab(44.68% -0.0096 -0.1418)
OKLCHoklch(44.68% 0.142 266.1)
XYZxyz(10.3455, 8.5197, 35.2747)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DA2 #A2842F
analogous
#2F86A2 #2F4DA2 #4A2FA2
triadic
#2F4DA2 #A22F4D #4DA22F
tetradic
#2F4DA2 #A22F86 #A2842F #2FA24A
square
#2F4DA2 #A22F86 #A2842F #2FA24A
split-complementary
#2F4DA2 #A24A2F #86A22F
monochromatic
#132043 #213673 #2F4DA2 #4568C9 #758ED7

Accessibility & contrast

On white

7.77
#2F4DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2F4DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DA2
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DA2#FFFFFF#000000##FFFFFF
##2F4DA21.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1758A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4da2;
/* rgb */ color: rgb(47, 77, 162);
/* oklch */ color: oklch(44.7% 0.142 266.1);
Tailwind
colors: {
  custom: {
    50: '#767ebe',
    500: '#2f4da2',
    950: '#000000',
  },
}
SCSS
$custom: #2f4da2;
$custom-light: #767ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4da2",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 162
  },
  "hsl": {
    "h": 224.348,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44677,
    "c": 0.14218,
    "h": 266.1
  },
  "luminance": 0.08521
}

Semantic roles & 50–950 ramp

primary
#2F4DA2
secondary
#BFAA6E
accent
#B849DE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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