#2F5A8A#2F5A8A

#2F5A8A is a mid, moderate cyan. Relative luminance 0.098; OKLCH L 46.0% C 0.092 H 252.7°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2F5A8A
RGBrgb(47, 90, 138)
HSLhsl(212, 49%, 36%)
HSVhsv(212, 66%, 54%)
CMYKcmyk(65.9%, 34.8%, 0%, 45.9%)
CIE-LABlab(37.39, 1.21, -31.11)
CIE-LCHlch(37.39, 31.13, 272.22°)
OKLaboklab(46.01% -0.0274 -0.0881)
OKLCHoklch(46.01% 0.092 252.7)
XYZxyz(9.4142, 9.7507, 25.4258)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5A8A #8A5F2F
analogous
#2F888A #2F5A8A #322F8A
triadic
#2F5A8A #8A2F5A #5A8A2F
tetradic
#2F5A8A #8A2F88 #8A5F2F #2F8A32
square
#2F5A8A #8A2F88 #8A5F2F #2F8A32
split-complementary
#2F5A8A #8A322F #888A2F
monochromatic
#101E2F #1F3C5C #2F5A8A #3F78B8 #6897CC

Accessibility & contrast

On white

7.12
#2F5A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2F5A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5A8A
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5A8A#FFFFFF#000000##FFFFFF
##2F5A8A1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455D8C
Deuteranopia (green-blind)
#395489
Tritanopia (blue-blind)
#00656B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f5a8a;
/* rgb */ color: rgb(47, 90, 138);
/* oklch */ color: oklch(46.0% 0.092 252.7);
Tailwind
colors: {
  custom: {
    50: '#7188ac',
    500: '#2f5a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f5a8a;
$custom-light: #7188ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5a8a",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 138
  },
  "hsl": {
    "h": 211.648,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4601,
    "c": 0.09226,
    "h": 252.7
  },
  "luminance": 0.09752
}

Semantic roles & 50–950 ramp

primary
#2F5A8A
secondary
#B38D62
accent
#984FD9
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #2F5A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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