#2F5F96#2F5F96

#2F5F96 is a mid, moderate cyan. Relative luminance 0.110; OKLCH L 47.9% C 0.103 H 253.4°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#2F5F96
RGBrgb(47, 95, 150)
HSLhsl(212, 52%, 39%)
HSVhsv(212, 69%, 59%)
CMYKcmyk(68.7%, 36.7%, 0%, 41.2%)
CIE-LABlab(39.56, 2.44, -34.92)
CIE-LCHlch(39.56, 35.01, 273.99°)
OKLaboklab(47.92% -0.0295 -0.0992)
OKLCHoklch(47.92% 0.103 253.4)
XYZxyz(10.7675, 10.9897, 30.4020)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5F96 #96662F
analogous
#2F9296 #2F5F96 #322F96
triadic
#2F5F96 #962F5F #5F962F
tetradic
#2F5F96 #962F92 #96662F #2F9632
square
#2F5F96 #962F92 #96662F #2F9632
split-complementary
#2F5F96 #96322F #92962F
monochromatic
#122439 #204167 #2F5F96 #3F7DC3 #6E9CD2

Accessibility & contrast

On white

6.57
#2F5F96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#2F5F96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5F96
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5F96#FFFFFF#000000##FFFFFF
##2F5F961.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476398
Deuteranopia (green-blind)
#385995
Tritanopia (blue-blind)
#006C73
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f5f96;
/* rgb */ color: rgb(47, 95, 150);
/* oklch */ color: oklch(47.9% 0.103 253.4);
Tailwind
colors: {
  custom: {
    50: '#738cb5',
    500: '#2f5f96',
    950: '#000000',
  },
}
SCSS
$custom: #2f5f96;
$custom-light: #738cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5f96",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 150
  },
  "hsl": {
    "h": 212.039,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4792,
    "c": 0.10346,
    "h": 253.4
  },
  "luminance": 0.10991
}

Semantic roles & 50–950 ramp

primary
#2F5F96
secondary
#B99368
accent
#994CDC
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090C11
muted
#7B7D80

Preview Lab

Preview with #2F5F96

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

Preview Lab → · Contrast checker → · Palette generator →

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