#2F5CA8#2F5CA8

#2F5CA8 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.4% C 0.132 H 260.2°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#2F5CA8
RGBrgb(47, 92, 168)
HSLhsl(218, 56%, 42%)
HSVhsv(218, 72%, 66%)
CMYKcmyk(72%, 45.2%, 0%, 34.1%)
CIE-LABlab(39.72, 11.10, -45.40)
CIE-LCHlch(39.72, 46.74, 283.74°)
OKLaboklab(48.39% -0.0224 -0.13)
OKLCHoklch(48.39% 0.132 260.2)
XYZxyz(12.0648, 11.0845, 38.5419)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CA8 #A87B2F
analogous
#2F99A8 #2F5CA8 #3F2FA8
triadic
#2F5CA8 #A82F5C #5CA82F
tetradic
#2F5CA8 #A82F99 #A87B2F #2FA83F
square
#2F5CA8 #A82F99 #A87B2F #2FA83F
split-complementary
#2F5CA8 #A83F2F #99A82F
monochromatic
#142848 #224278 #2F5CA8 #4879CC #789CD9

Accessibility & contrast

On white

6.53
#2F5CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2F5CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CA8
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CA8#FFFFFF#000000##FFFFFF
##2F5CA81.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3664AB
Deuteranopia (green-blind)
#1E58A6
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5ca8;
/* rgb */ color: rgb(47, 92, 168);
/* oklch */ color: oklch(48.4% 0.132 260.2);
Tailwind
colors: {
  custom: {
    50: '#7789c2',
    500: '#2f5ca8',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ca8;
$custom-light: #7789c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ca8",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 168
  },
  "hsl": {
    "h": 217.686,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48385,
    "c": 0.13189,
    "h": 260.2
  },
  "luminance": 0.11086
}

Semantic roles & 50–950 ramp

primary
#2F5CA8
secondary
#C1A471
accent
#A748E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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