#1F5FAA#1F5FAA

#1F5FAA is a mid, vivid cyan. Relative luminance 0.114; OKLCH L 48.7% C 0.136 H 255.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#1F5FAA
RGBrgb(31, 95, 170)
HSLhsl(212, 69%, 39%)
HSVhsv(212, 82%, 67%)
CMYKcmyk(81.8%, 44.1%, 0%, 33.3%)
CIE-LABlab(40.21, 7.93, -45.84)
CIE-LCHlch(40.21, 46.52, 279.82°)
OKLaboklab(48.65% -0.035 -0.1314)
OKLCHoklch(48.65% 0.136 255.1)
XYZxyz(11.9103, 11.3766, 39.5906)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5FAA #AA6A1F
analogous
#1FA5AA #1F5FAA #251FAA
triadic
#1F5FAA #AA1F5F #5FAA1F
tetradic
#1F5FAA #AA1FA5 #AA6A1F #1FAA25
square
#1F5FAA #AA1FA5 #AA6A1F #1FAA25
split-complementary
#1F5FAA #AA251F #A5AA1F
monochromatic
#0C2542 #164276 #1F5FAA #2D7CD9 #619DE2

Accessibility & contrast

On white

6.41
#1F5FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#1F5FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5FAA
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5FAA#FFFFFF#000000##FFFFFF
##1F5FAA1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3865AD
Deuteranopia (green-blind)
#1C59A9
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #1f5faa;
/* rgb */ color: rgb(31, 95, 170);
/* oklch */ color: oklch(48.7% 0.136 255.1);
Tailwind
colors: {
  custom: {
    50: '#728bc4',
    500: '#1f5faa',
    950: '#000000',
  },
}
SCSS
$custom: #1f5faa;
$custom-light: #728bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5faa",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 170
  },
  "hsl": {
    "h": 212.374,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48654,
    "c": 0.136,
    "h": 255.1
  },
  "luminance": 0.11378
}

Semantic roles & 50–950 ramp

primary
#1F5FAA
secondary
#C7975E
accent
#9B3CEC
background
#F7F8FC
surface
#EDF0F8
border
#C8CBD1
text
#090C13
muted
#7B7D82

Preview Lab

Preview with #1F5FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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