#1F5AAA#1F5AAA

#1F5AAA is a mid, vivid cyan. Relative luminance 0.105; OKLCH L 47.5% C 0.142 H 257.4°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#1F5AAA
RGBrgb(31, 90, 170)
HSLhsl(215, 69%, 39%)
HSVhsv(215, 82%, 67%)
CMYKcmyk(81.8%, 47.1%, 0%, 33.3%)
CIE-LABlab(38.73, 11.20, -48.21)
CIE-LCHlch(38.73, 49.49, 283.08°)
OKLaboklab(47.51% -0.031 -0.1385)
OKLCHoklch(47.51% 0.142 257.4)
XYZxyz(11.4743, 10.5045, 39.4452)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5AAA #AA6F1F
analogous
#1FA0AA #1F5AAA #291FAA
triadic
#1F5AAA #AA1F5A #5AAA1F
tetradic
#1F5AAA #AA1FA0 #AA6F1F #1FAA29
square
#1F5AAA #AA1FA0 #AA6F1F #1FAA29
split-complementary
#1F5AAA #AA291F #A0AA1F
monochromatic
#0C2342 #163F76 #1F5AAA #2D76D9 #6198E2

Accessibility & contrast

On white

6.77
#1F5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#1F5AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5AAA
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5AAA#FFFFFF#000000##FFFFFF
##1F5AAA1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E62AD
Deuteranopia (green-blind)
#0555A8
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #1f5aaa;
/* rgb */ color: rgb(31, 90, 170);
/* oklch */ color: oklch(47.5% 0.142 257.4);
Tailwind
colors: {
  custom: {
    50: '#7288c4',
    500: '#1f5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #1f5aaa;
$custom-light: #7288c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5aaa",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 214.532,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.47513,
    "c": 0.14189,
    "h": 257.4
  },
  "luminance": 0.10506
}

Semantic roles & 50–950 ramp

primary
#1F5AAA
secondary
#C79A5E
accent
#A13CEC
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090B13
muted
#7B7C82

Preview Lab

Preview with #1F5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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