#2F5AA1#2F5AA1

#2F5AA1 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.5% C 0.124 H 259.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#2F5AA1
RGBrgb(47, 90, 161)
HSLhsl(217, 55%, 41%)
HSVhsv(217, 71%, 63%)
CMYKcmyk(70.8%, 44.1%, 0%, 36.9%)
CIE-LABlab(38.71, 9.76, -42.87)
CIE-LCHlch(38.71, 43.97, 282.83°)
OKLaboklab(47.46% -0.0219 -0.1225)
OKLCHoklch(47.46% 0.124 259.9)
XYZxyz(11.2592, 10.4887, 35.1425)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AA1 #A1762F
analogous
#2F93A1 #2F5AA1 #3D2FA1
triadic
#2F5AA1 #A12F5A #5AA12F
tetradic
#2F5AA1 #A12F93 #A1762F #2FA13D
square
#2F5AA1 #A12F93 #A1762F #2FA13D
split-complementary
#2F5AA1 #A13D2F #93A12F
monochromatic
#132542 #214072 #2F5AA1 #4576C9 #7499D6

Accessibility & contrast

On white

6.78
#2F5AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2F5AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AA1
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AA1#FFFFFF#000000##FFFFFF
##2F5AA11.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3861A4
Deuteranopia (green-blind)
#2356A0
Tritanopia (blue-blind)
#006A75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f5aa1;
/* rgb */ color: rgb(47, 90, 161);
/* oklch */ color: oklch(47.5% 0.124 259.9);
Tailwind
colors: {
  custom: {
    50: '#7588bd',
    500: '#2f5aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2f5aa1;
$custom-light: #7588bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5aa1",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 161
  },
  "hsl": {
    "h": 217.368,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4746,
    "c": 0.12448,
    "h": 259.9
  },
  "luminance": 0.1049
}

Semantic roles & 50–950 ramp

primary
#2F5AA1
secondary
#BEA06E
accent
#A64ADE
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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