#2F5DAF#2F5DAF

#2F5DAF is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.1% C 0.140 H 260.9°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#2F5DAF
RGBrgb(47, 93, 175)
HSLhsl(218, 58%, 44%)
HSVhsv(218, 73%, 69%)
CMYKcmyk(73.1%, 46.9%, 0%, 31.4%)
CIE-LABlab(40.45, 13.10, -48.37)
CIE-LCHlch(40.45, 50.11, 285.15°)
OKLaboklab(49.09% -0.0221 -0.1387)
OKLCHoklch(49.09% 0.14 260.9)
XYZxyz(12.8217, 11.5268, 42.0983)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DAF #AF812F
analogous
#2F9DAF #2F5DAF #412FAF
triadic
#2F5DAF #AF2F5D #5DAF2F
tetradic
#2F5DAF #AF2F9D #AF812F #2FAF41
square
#2F5DAF #AF2F9D #AF812F #2FAF41
split-complementary
#2F5DAF #AF412F #9DAF2F
monochromatic
#152A4F #22437F #2F5DAF #4C7BCF #7C9FDC

Accessibility & contrast

On white

6.35
#2F5DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2F5DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DAF
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DAF#FFFFFF#000000##FFFFFF
##2F5DAF1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3266B2
Deuteranopia (green-blind)
#145AAD
Tritanopia (blue-blind)
#00707D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5daf;
/* rgb */ color: rgb(47, 93, 175);
/* oklch */ color: oklch(49.1% 0.140 260.9);
Tailwind
colors: {
  custom: {
    50: '#788ac7',
    500: '#2f5daf',
    950: '#000000',
  },
}
SCSS
$custom: #2f5daf;
$custom-light: #788ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5daf",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 175
  },
  "hsl": {
    "h": 218.438,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4909,
    "c": 0.14041,
    "h": 260.9
  },
  "luminance": 0.11528
}

Semantic roles & 50–950 ramp

primary
#2F5DAF
secondary
#C4A875
accent
#AA47E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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