#1F5FA1#1F5FA1

#1F5FA1 is a mid, vivid cyan. Relative luminance 0.110; OKLCH L 48.1% C 0.124 H 252.6°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#1F5FA1
RGBrgb(31, 95, 161)
HSLhsl(210, 68%, 38%)
HSVhsv(210, 81%, 63%)
CMYKcmyk(80.7%, 41%, 0%, 36.9%)
CIE-LABlab(39.66, 4.39, -41.37)
CIE-LCHlch(39.66, 41.61, 276.06°)
OKLaboklab(48.05% -0.037 -0.1183)
OKLCHoklch(48.05% 0.124 252.6)
XYZxyz(11.0879, 11.0476, 35.2593)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5FA1 #A1611F
analogous
#1FA0A1 #1F5FA1 #201FA1
triadic
#1F5FA1 #A11F5F #5FA11F
tetradic
#1F5FA1 #A11FA0 #A1611F #1FA120
square
#1F5FA1 #A11FA0 #A1611F #1FA120
split-complementary
#1F5FA1 #A1201F #A0A11F
monochromatic
#0B223A #15416E #1F5FA1 #297DD4 #5B9CDF

Accessibility & contrast

On white

6.54
#1F5FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#1F5FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5FA1
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5FA1#FFFFFF#000000##FFFFFF
##1F5FA11.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F64A4
Deuteranopia (green-blind)
#2958A0
Tritanopia (blue-blind)
#006F78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #1f5fa1;
/* rgb */ color: rgb(31, 95, 161);
/* oklch */ color: oklch(48.1% 0.124 252.6);
Tailwind
colors: {
  custom: {
    50: '#708bbd',
    500: '#1f5fa1',
    950: '#000000',
  },
}
SCSS
$custom: #1f5fa1;
$custom-light: #708bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5fa1",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 161
  },
  "hsl": {
    "h": 210.462,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48051,
    "c": 0.12394,
    "h": 252.6
  },
  "luminance": 0.11049
}

Semantic roles & 50–950 ramp

primary
#1F5FA1
secondary
#C48F58
accent
#953DEB
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #1F5FA1

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

Preview Lab → · Contrast checker → · Palette generator →

#1F5FA1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva