#2F507B#2F507B

#2F507B is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.7% C 0.082 H 255.6°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2F507B
RGBrgb(47, 80, 123)
HSLhsl(214, 45%, 33%)
HSVhsv(214, 62%, 48%)
CMYKcmyk(61.8%, 35%, 0%, 51.8%)
CIE-LABlab(33.50, 2.18, -28.03)
CIE-LCHlch(33.50, 28.11, 274.45°)
OKLaboklab(42.71% -0.0203 -0.0792)
OKLCHoklch(42.71% 0.082 255.6)
XYZxyz(7.6148, 7.7710, 19.8337)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F507B #7B5A2F
analogous
#2F767B #2F507B #342F7B
triadic
#2F507B #7B2F50 #507B2F
tetradic
#2F507B #7B2F76 #7B5A2F #2F7B34
square
#2F507B #7B2F76 #7B5A2F #2F7B34
split-complementary
#2F507B #7B342F #767B2F
monochromatic
#0D1622 #1E334F #2F507B #406DA7 #628CC3

Accessibility & contrast

On white

8.22
#2F507B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2F507B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F507B
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F507B#FFFFFF#000000##FFFFFF
##2F507B1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E537D
Deuteranopia (green-blind)
#344B7A
Tritanopia (blue-blind)
#005A60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f507b;
/* rgb */ color: rgb(47, 80, 123);
/* oklch */ color: oklch(42.7% 0.082 255.6);
Tailwind
colors: {
  custom: {
    50: '#6f80a1',
    500: '#2f507b',
    950: '#000000',
  },
}
SCSS
$custom: #2f507b;
$custom-light: #6f80a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f507b",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 123
  },
  "hsl": {
    "h": 213.947,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42707,
    "c": 0.08178,
    "h": 255.6
  },
  "luminance": 0.07772
}

Semantic roles & 50–950 ramp

primary
#2F507B
secondary
#AA885C
accent
#9C53D4
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0F
muted
#7B7C7E

Preview Lab

Preview with #2F507B

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

Preview Lab → · Contrast checker → · Palette generator →

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