#2F5CA9#2F5CA9

#2F5CA9 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.5% C 0.133 H 260.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#2F5CA9
RGBrgb(47, 92, 169)
HSLhsl(218, 56%, 42%)
HSVhsv(218, 72%, 66%)
CMYKcmyk(72.2%, 45.6%, 0%, 33.7%)
CIE-LABlab(39.78, 11.48, -45.90)
CIE-LCHlch(39.78, 47.31, 284.04°)
OKLaboklab(48.45% -0.0222 -0.1314)
OKLCHoklch(48.45% 0.133 260.4)
XYZxyz(12.1583, 11.1219, 39.0344)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CA9 #A97C2F
analogous
#2F99A9 #2F5CA9 #3F2FA9
triadic
#2F5CA9 #A92F5C #5CA92F
tetradic
#2F5CA9 #A92F99 #A97C2F #2FA93F
square
#2F5CA9 #A92F99 #A97C2F #2FA93F
split-complementary
#2F5CA9 #A93F2F #99A92F
monochromatic
#142849 #224279 #2F5CA9 #4979CC #799CDA

Accessibility & contrast

On white

6.51
#2F5CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5CA9
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CA9#FFFFFF#000000##FFFFFF
##2F5CA91.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3564AC
Deuteranopia (green-blind)
#1D59A7
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5ca9;
/* rgb */ color: rgb(47, 92, 169);
/* oklch */ color: oklch(48.5% 0.133 260.4);
Tailwind
colors: {
  custom: {
    50: '#7789c3',
    500: '#2f5ca9',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ca9;
$custom-light: #7789c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ca9",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 169
  },
  "hsl": {
    "h": 217.869,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48453,
    "c": 0.13328,
    "h": 260.4
  },
  "luminance": 0.11123
}

Semantic roles & 50–950 ramp

primary
#2F5CA9
secondary
#C2A472
accent
#A848E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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