#1F5EAA#1F5EAA

#1F5EAA is a mid, vivid cyan. Relative luminance 0.112; OKLCH L 48.4% C 0.137 H 255.6°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#1F5EAA
RGBrgb(31, 94, 170)
HSLhsl(213, 69%, 39%)
HSVhsv(213, 82%, 67%)
CMYKcmyk(81.8%, 44.7%, 0%, 33.3%)
CIE-LABlab(39.91, 8.58, -46.31)
CIE-LCHlch(39.91, 47.10, 280.50°)
OKLaboklab(48.42% -0.0342 -0.1328)
OKLCHoklch(48.42% 0.137 255.6)
XYZxyz(11.8208, 11.1976, 39.5607)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5EAA #AA6B1F
analogous
#1FA4AA #1F5EAA #261FAA
triadic
#1F5EAA #AA1F5E #5EAA1F
tetradic
#1F5EAA #AA1FA4 #AA6B1F #1FAA26
square
#1F5EAA #AA1FA4 #AA6B1F #1FAA26
split-complementary
#1F5EAA #AA261F #A4AA1F
monochromatic
#0C2542 #164176 #1F5EAA #2D7BD9 #619CE2

Accessibility & contrast

On white

6.48
#1F5EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#1F5EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5EAA
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5EAA#FFFFFF#000000##FFFFFF
##1F5EAA1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3765AD
Deuteranopia (green-blind)
#1958A8
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #1f5eaa;
/* rgb */ color: rgb(31, 94, 170);
/* oklch */ color: oklch(48.4% 0.137 255.6);
Tailwind
colors: {
  custom: {
    50: '#728bc4',
    500: '#1f5eaa',
    950: '#000000',
  },
}
SCSS
$custom: #1f5eaa;
$custom-light: #728bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5eaa",
  "rgb": {
    "r": 31,
    "g": 94,
    "b": 170
  },
  "hsl": {
    "h": 212.806,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48424,
    "c": 0.13715,
    "h": 255.6
  },
  "luminance": 0.11199
}

Semantic roles & 50–950 ramp

primary
#1F5EAA
secondary
#C7975E
accent
#9C3CEC
background
#F7F8FC
surface
#EDF0F8
border
#C8CBD1
text
#090B13
muted
#7B7C82

Preview Lab

Preview with #1F5EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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