#2F5A97#2F5A97

#2F5A97 is a mid, moderate blue. Relative luminance 0.102; OKLCH L 46.8% C 0.110 H 257.4°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2F5A97
RGBrgb(47, 90, 151)
HSLhsl(215, 53%, 39%)
HSVhsv(215, 69%, 59%)
CMYKcmyk(68.9%, 40.4%, 0%, 40.8%)
CIE-LABlab(38.11, 6.01, -37.83)
CIE-LCHlch(38.11, 38.30, 279.03°)
OKLaboklab(46.81% -0.024 -0.1077)
OKLCHoklch(46.81% 0.11 257.4)
XYZxyz(10.4124, 10.1500, 30.6826)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5A97 #976C2F
analogous
#2F8E97 #2F5A97 #382F97
triadic
#2F5A97 #972F5A #5A972F
tetradic
#2F5A97 #972F8E #976C2F #2F9738
square
#2F5A97 #972F8E #976C2F #2F9738
split-complementary
#2F5A97 #97382F #8E972F
monochromatic
#12223A #203E68 #2F5A97 #4076C3 #6E98D2

Accessibility & contrast

On white

6.93
#2F5A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2F5A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5A97
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5A97#FFFFFF#000000##FFFFFF
##2F5A971.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5F99
Deuteranopia (green-blind)
#2F5596
Tritanopia (blue-blind)
#006871
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f5a97;
/* rgb */ color: rgb(47, 90, 151);
/* oklch */ color: oklch(46.8% 0.110 257.4);
Tailwind
colors: {
  custom: {
    50: '#7488b6',
    500: '#2f5a97',
    950: '#000000',
  },
}
SCSS
$custom: #2f5a97;
$custom-light: #7488b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5a97",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 151
  },
  "hsl": {
    "h": 215.192,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46806,
    "c": 0.11039,
    "h": 257.4
  },
  "luminance": 0.10151
}

Semantic roles & 50–950 ramp

primary
#2F5A97
secondary
#B99868
accent
#A04CDC
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5A97

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

Preview Lab → · Contrast checker → · Palette generator →

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