#2F5172#2F5172

#2F5172 is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.4% C 0.068 H 249.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2F5172
RGBrgb(47, 81, 114)
HSLhsl(210, 42%, 32%)
HSVhsv(210, 59%, 45%)
CMYKcmyk(58.8%, 28.9%, 0%, 55.3%)
CIE-LABlab(33.36, -1.67, -22.65)
CIE-LCHlch(33.36, 22.71, 265.78°)
OKLaboklab(42.44% -0.0244 -0.0636)
OKLCHoklch(42.44% 0.068 249)
XYZxyz(7.1509, 7.7035, 17.0264)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5172 #72502F
analogous
#2F7272 #2F5172 #2F3072
triadic
#2F5172 #722F51 #51722F
tetradic
#2F5172 #722F72 #72502F #30722F
square
#2F5172 #722F72 #72502F #30722F
split-complementary
#2F5172 #722F30 #72722F
monochromatic
#0B131B #1D3247 #2F5172 #41709D #5F8EBD

Accessibility & contrast

On white

8.27
#2F5172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2F5172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5172
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5172#FFFFFF#000000##FFFFFF
##2F51721.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435273
Deuteranopia (green-blind)
#3A4B71
Tritanopia (blue-blind)
#00595C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f5172;
/* rgb */ color: rgb(47, 81, 114);
/* oklch */ color: oklch(42.4% 0.068 249.0);
Tailwind
colors: {
  custom: {
    50: '#6d819a',
    500: '#2f5172',
    950: '#000000',
  },
}
SCSS
$custom: #2f5172;
$custom-light: #6d819a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5172",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 114
  },
  "hsl": {
    "h": 209.552,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42444,
    "c": 0.06812,
    "h": 249
  },
  "luminance": 0.07704
}

Semantic roles & 50–950 ramp

primary
#2F5172
secondary
#A37E5A
accent
#9356D1
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2F5172

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

Preview Lab → · Contrast checker → · Palette generator →

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