#2F5DA1#2F5DA1

#2F5DA1 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.1% C 0.121 H 258.2°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#2F5DA1
RGBrgb(47, 93, 161)
HSLhsl(216, 55%, 41%)
HSVhsv(216, 71%, 63%)
CMYKcmyk(70.8%, 42.2%, 0%, 36.9%)
CIE-LABlab(39.59, 7.82, -41.46)
CIE-LCHlch(39.59, 42.19, 280.68°)
OKLaboklab(48.14% -0.0248 -0.1183)
OKLCHoklch(48.14% 0.121 258.2)
XYZxyz(11.5173, 11.0050, 35.2285)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DA1 #A1732F
analogous
#2F96A1 #2F5DA1 #3A2FA1
triadic
#2F5DA1 #A12F5D #5DA12F
tetradic
#2F5DA1 #A12F96 #A1732F #2FA13A
square
#2F5DA1 #A12F96 #A1732F #2FA13A
split-complementary
#2F5DA1 #A13A2F #96A12F
monochromatic
#132642 #214272 #2F5DA1 #457AC9 #749CD6

Accessibility & contrast

On white

6.56
#2F5DA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#2F5DA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DA1
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DA1#FFFFFF#000000##FFFFFF
##2F5DA11.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D63A4
Deuteranopia (green-blind)
#2A58A0
Tritanopia (blue-blind)
#006D77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f5da1;
/* rgb */ color: rgb(47, 93, 161);
/* oklch */ color: oklch(48.1% 0.121 258.2);
Tailwind
colors: {
  custom: {
    50: '#758abd',
    500: '#2f5da1',
    950: '#000000',
  },
}
SCSS
$custom: #2f5da1;
$custom-light: #758abd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5da1",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 161
  },
  "hsl": {
    "h": 215.789,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48143,
    "c": 0.12091,
    "h": 258.2
  },
  "luminance": 0.11006
}

Semantic roles & 50–950 ramp

primary
#2F5DA1
secondary
#BE9E6E
accent
#A24ADE
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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