#2F5CAB#2F5CAB

#2F5CAB is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.6% C 0.136 H 260.7°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#2F5CAB
RGBrgb(47, 92, 171)
HSLhsl(218, 57%, 43%)
HSVhsv(218, 73%, 67%)
CMYKcmyk(72.5%, 46.2%, 0%, 32.9%)
CIE-LABlab(39.91, 12.23, -46.88)
CIE-LCHlch(39.91, 48.45, 284.63°)
OKLaboklab(48.59% -0.0219 -0.1343)
OKLCHoklch(48.59% 0.136 260.7)
XYZxyz(12.3475, 11.1976, 40.0308)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CAB #AB7E2F
analogous
#2F9AAB #2F5CAB #402FAB
triadic
#2F5CAB #AB2F5C #5CAB2F
tetradic
#2F5CAB #AB2F9A #AB7E2F #2FAB40
square
#2F5CAB #AB2F9A #AB7E2F #2FAB40
split-complementary
#2F5CAB #AB402F #9AAB2F
monochromatic
#15284B #22427B #2F5CAB #4A7ACD #7A9DDA

Accessibility & contrast

On white

6.48
#2F5CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#2F5CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CAB
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CAB#FFFFFF#000000##FFFFFF
##2F5CAB1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AE
Deuteranopia (green-blind)
#1959A9
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5cab;
/* rgb */ color: rgb(47, 92, 171);
/* oklch */ color: oklch(48.6% 0.136 260.7);
Tailwind
colors: {
  custom: {
    50: '#7789c4',
    500: '#2f5cab',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cab;
$custom-light: #7789c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cab",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 171
  },
  "hsl": {
    "h": 218.226,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48591,
    "c": 0.13607,
    "h": 260.7
  },
  "luminance": 0.11199
}

Semantic roles & 50–950 ramp

primary
#2F5CAB
secondary
#C3A673
accent
#A948E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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