#2F5789#2F5789

#2F5789 is a mid, moderate cyan. Relative luminance 0.092; OKLCH L 45.2% C 0.094 H 255.0°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#2F5789
RGBrgb(47, 87, 137)
HSLhsl(213, 49%, 36%)
HSVhsv(213, 66%, 54%)
CMYKcmyk(65.7%, 36.5%, 0%, 46.3%)
CIE-LABlab(36.42, 2.76, -32.04)
CIE-LCHlch(36.42, 32.16, 274.92°)
OKLaboklab(45.23% -0.0244 -0.0908)
OKLCHoklch(45.23% 0.094 255)
XYZxyz(9.0942, 9.2260, 24.9636)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5789 #89612F
analogous
#2F8489 #2F5789 #342F89
triadic
#2F5789 #892F57 #57892F
tetradic
#2F5789 #892F84 #89612F #2F8934
square
#2F5789 #892F84 #89612F #2F8934
split-complementary
#2F5789 #89342F #84892F
monochromatic
#101D2E #1F3A5B #2F5789 #3F74B7 #6794CB

Accessibility & contrast

On white

7.38
#2F5789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2F5789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5789
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5789#FFFFFF#000000##FFFFFF
##2F57891.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415A8B
Deuteranopia (green-blind)
#355288
Tritanopia (blue-blind)
#006269
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f5789;
/* rgb */ color: rgb(47, 87, 137);
/* oklch */ color: oklch(45.2% 0.094 255.0);
Tailwind
colors: {
  custom: {
    50: '#7186ab',
    500: '#2f5789',
    950: '#000000',
  },
}
SCSS
$custom: #2f5789;
$custom-light: #7186ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5789",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 137
  },
  "hsl": {
    "h": 213.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4523,
    "c": 0.09406,
    "h": 255
  },
  "luminance": 0.09227
}

Semantic roles & 50–950 ramp

primary
#2F5789
secondary
#B28E62
accent
#9C4FD8
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #2F5789

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

Preview Lab → · Contrast checker → · Palette generator →

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