#2F5EBD#2F5EBD

#2F5EBD is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.3% C 0.158 H 262.4°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#2F5EBD
RGBrgb(47, 94, 189)
HSLhsl(220, 60%, 46%)
HSVhsv(220, 75%, 74%)
CMYKcmyk(75.1%, 50.3%, 0%, 25.9%)
CIE-LABlab(41.66, 17.74, -54.62)
CIE-LCHlch(41.66, 57.43, 288.00°)
OKLaboklab(50.31% -0.0209 -0.1571)
OKLCHoklch(50.31% 0.158 262.4)
XYZxyz(14.3570, 12.2823, 49.7483)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EBD #BD8E2F
analogous
#2FA5BD #2F5EBD #472FBD
triadic
#2F5EBD #BD2F5E #5EBD2F
tetradic
#2F5EBD #BD2FA5 #BD8E2F #2FBD47
square
#2F5EBD #BD2FA5 #BD8E2F #2FBD47
split-complementary
#2F5EBD #BD472F #A5BD2F
monochromatic
#172D5B #23468C #2F5EBD #557FD5 #86A4E1

Accessibility & contrast

On white

6.07
#2F5EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#2F5EBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EBD
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EBD#FFFFFF#000000##FFFFFF
##2F5EBD1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2469C0
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5ebd;
/* rgb */ color: rgb(47, 94, 189);
/* oklch */ color: oklch(50.3% 0.158 262.4);
Tailwind
colors: {
  custom: {
    50: '#7b8bd1',
    500: '#2f5ebd',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ebd;
$custom-light: #7b8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ebd",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 189
  },
  "hsl": {
    "h": 220.141,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50311,
    "c": 0.15844,
    "h": 262.4
  },
  "luminance": 0.12284
}

Semantic roles & 50–950 ramp

primary
#2F5EBD
secondary
#CAB17E
accent
#AF44E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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