#1F5BAA#1F5BAA

#1F5BAA is a mid, vivid cyan. Relative luminance 0.107; OKLCH L 47.7% C 0.141 H 257.0°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#1F5BAA
RGBrgb(31, 91, 170)
HSLhsl(214, 69%, 39%)
HSVhsv(214, 82%, 67%)
CMYKcmyk(81.8%, 46.5%, 0%, 33.3%)
CIE-LABlab(39.03, 10.54, -47.73)
CIE-LCHlch(39.03, 48.88, 282.45°)
OKLaboklab(47.74% -0.0318 -0.1371)
OKLCHoklch(47.74% 0.141 257)
XYZxyz(11.5592, 10.6744, 39.4735)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5BAA #AA6E1F
analogous
#1FA1AA #1F5BAA #291FAA
triadic
#1F5BAA #AA1F5B #5BAA1F
tetradic
#1F5BAA #AA1FA1 #AA6E1F #1FAA29
square
#1F5BAA #AA1FA1 #AA6E1F #1FAA29
split-complementary
#1F5BAA #AA291F #A1AA1F
monochromatic
#0C2442 #163F76 #1F5BAA #2D77D9 #6199E2

Accessibility & contrast

On white

6.70
#1F5BAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#1F5BAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5BAA
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5BAA#FFFFFF#000000##FFFFFF
##1F5BAA1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3063AD
Deuteranopia (green-blind)
#0B56A8
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #1f5baa;
/* rgb */ color: rgb(31, 91, 170);
/* oklch */ color: oklch(47.7% 0.141 257.0);
Tailwind
colors: {
  custom: {
    50: '#7288c4',
    500: '#1f5baa',
    950: '#000000',
  },
}
SCSS
$custom: #1f5baa;
$custom-light: #7288c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5baa",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 170
  },
  "hsl": {
    "h": 214.101,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.47739,
    "c": 0.1407,
    "h": 257
  },
  "luminance": 0.10676
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F5BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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