#2F5A9C#2F5A9C

#2F5A9C is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.1% C 0.117 H 258.8°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#2F5A9C
RGBrgb(47, 90, 156)
HSLhsl(216, 54%, 40%)
HSVhsv(216, 70%, 61%)
CMYKcmyk(69.9%, 42.3%, 0%, 38.8%)
CIE-LABlab(38.40, 7.88, -40.36)
CIE-LCHlch(38.40, 41.12, 281.05°)
OKLaboklab(47.13% -0.0229 -0.1152)
OKLCHoklch(47.13% 0.117 258.8)
XYZxyz(10.8270, 10.3159, 32.8666)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5A9C #9C712F
analogous
#2F919C #2F5A9C #3A2F9C
triadic
#2F5A9C #9C2F5A #5A9C2F
tetradic
#2F5A9C #9C2F91 #9C712F #2F9C3A
square
#2F5A9C #9C2F91 #9C712F #2F9C3A
split-complementary
#2F5A9C #9C3A2F #919C2F
monochromatic
#13243E #213F6D #2F5A9C #4276C6 #7198D4

Accessibility & contrast

On white

6.86
#2F5A9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2F5A9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5A9C
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5A9C#FFFFFF#000000##FFFFFF
##2F5A9C1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B609F
Deuteranopia (green-blind)
#29569B
Tritanopia (blue-blind)
#006973
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f5a9c;
/* rgb */ color: rgb(47, 90, 156);
/* oklch */ color: oklch(47.1% 0.117 258.8);
Tailwind
colors: {
  custom: {
    50: '#7488b9',
    500: '#2f5a9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f5a9c;
$custom-light: #7488b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5a9c",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 156
  },
  "hsl": {
    "h": 216.33,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47128,
    "c": 0.11744,
    "h": 258.8
  },
  "luminance": 0.10317
}

Semantic roles & 50–950 ramp

primary
#2F5A9C
secondary
#BC9C6B
accent
#A34BDD
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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