#2F5EBB#2F5EBB

#2F5EBB is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.156 H 262.2°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#2F5EBB
RGBrgb(47, 94, 187)
HSLhsl(220, 60%, 46%)
HSVhsv(220, 75%, 73%)
CMYKcmyk(74.9%, 49.7%, 0%, 26.7%)
CIE-LABlab(41.53, 16.99, -53.68)
CIE-LCHlch(41.53, 56.30, 287.56°)
OKLaboklab(50.17% -0.0212 -0.1543)
OKLCHoklch(50.17% 0.156 262.2)
XYZxyz(14.1414, 12.1960, 48.6128)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EBB #BB8C2F
analogous
#2FA4BB #2F5EBB #462FBB
triadic
#2F5EBB #BB2F5E #5EBB2F
tetradic
#2F5EBB #BB2FA4 #BB8C2F #2FBB46
square
#2F5EBB #BB2FA4 #BB8C2F #2FBB46
split-complementary
#2F5EBB #BB462F #A4BB2F
monochromatic
#162D59 #23458A #2F5EBB #537ED4 #84A3E0

Accessibility & contrast

On white

6.11
#2F5EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2F5EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EBB
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EBB#FFFFFF#000000##FFFFFF
##2F5EBB1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2769BE
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5ebb;
/* rgb */ color: rgb(47, 94, 187);
/* oklch */ color: oklch(50.2% 0.156 262.2);
Tailwind
colors: {
  custom: {
    50: '#7b8bd0',
    500: '#2f5ebb',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ebb;
$custom-light: #7b8bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ebb",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 187
  },
  "hsl": {
    "h": 219.857,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50165,
    "c": 0.15571,
    "h": 262.2
  },
  "luminance": 0.12198
}

Semantic roles & 50–950 ramp

primary
#2F5EBB
secondary
#C9B07C
accent
#AE45E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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