#2F5EA5#2F5EA5

#2F5EA5 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.6% C 0.125 H 258.5°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#2F5EA5
RGBrgb(47, 94, 165)
HSLhsl(216, 56%, 42%)
HSVhsv(216, 72%, 65%)
CMYKcmyk(71.5%, 43%, 0%, 35.3%)
CIE-LABlab(40.12, 8.67, -42.98)
CIE-LCHlch(40.12, 43.85, 281.41°)
OKLaboklab(48.63% -0.0249 -0.1228)
OKLCHoklch(48.63% 0.125 258.5)
XYZxyz(11.9641, 11.3251, 37.1454)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EA5 #A5762F
analogous
#2F99A5 #2F5EA5 #3B2FA5
triadic
#2F5EA5 #A52F5E #5EA52F
tetradic
#2F5EA5 #A52F99 #A5762F #2FA53B
square
#2F5EA5 #A52F99 #A5762F #2FA53B
split-complementary
#2F5EA5 #A53B2F #99A52F
monochromatic
#142846 #214375 #2F5EA5 #477BCB #769DD8

Accessibility & contrast

On white

6.43
#2F5EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2F5EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EA5
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EA5#FFFFFF#000000##FFFFFF
##2F5EA51.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C64A8
Deuteranopia (green-blind)
#285AA4
Tritanopia (blue-blind)
#006F79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5ea5;
/* rgb */ color: rgb(47, 94, 165);
/* oklch */ color: oklch(48.6% 0.125 258.5);
Tailwind
colors: {
  custom: {
    50: '#768bc0',
    500: '#2f5ea5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ea5;
$custom-light: #768bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ea5",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 165
  },
  "hsl": {
    "h": 216.102,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48634,
    "c": 0.12532,
    "h": 258.5
  },
  "luminance": 0.11326
}

Semantic roles & 50–950 ramp

primary
#2F5EA5
secondary
#C0A070
accent
#A349DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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