#315271#315271

#315271 is a dark, moderate cyan. Relative luminance 0.079; OKLCH L 42.7% C 0.065 H 248.1°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#315271
RGBrgb(49, 82, 113)
HSLhsl(209, 40%, 32%)
HSVhsv(209, 57%, 44%)
CMYKcmyk(56.6%, 27.4%, 0%, 55.7%)
CIE-LABlab(33.73, -2.17, -21.44)
CIE-LCHlch(33.73, 21.55, 264.21°)
OKLaboklab(42.75% -0.0241 -0.0601)
OKLCHoklch(42.75% 0.065 248.1)
XYZxyz(7.2635, 7.8792, 16.7577)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315271 #715031
analogous
#317170 #315271 #313271
triadic
#315271 #713152 #527131
tetradic
#315271 #703171 #715031 #327131
square
#315271 #703171 #715031 #327131
split-complementary
#315271 #713132 #717031
monochromatic
#0C141C #1E3346 #315271 #44719C #6290BB

Accessibility & contrast

On white

8.15
#315271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#315271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315271
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315271#FFFFFF#000000##FFFFFF
##3152711.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455372
Deuteranopia (green-blind)
#3D4C70
Tritanopia (blue-blind)
#08595D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #315271;
/* rgb */ color: rgb(49, 82, 113);
/* oklch */ color: oklch(42.7% 0.065 248.1);
Tailwind
colors: {
  custom: {
    50: '#6e829a',
    500: '#315271',
    950: '#000000',
  },
}
SCSS
$custom: #315271;
$custom-light: #6e829a;
$custom-dark: #000000;
JSON
{
  "hex": "#315271",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 209.063,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42749,
    "c": 0.06475,
    "h": 248.1
  },
  "luminance": 0.0788
}

Semantic roles & 50–950 ramp

primary
#315271
secondary
#A27E5C
accent
#9258CF
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #315271

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

Preview Lab → · Contrast checker → · Palette generator →

#315271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva