#1F3395#1F3395

#1F3395 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.162 H 268.2°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#1F3395
RGBrgb(31, 51, 149)
HSLhsl(230, 66%, 35%)
HSVhsv(230, 79%, 58%)
CMYKcmyk(79.2%, 65.8%, 0%, 41.6%)
CIE-LABlab(26.24, 29.22, -55.83)
CIE-LCHlch(26.24, 63.01, 297.63°)
OKLaboklab(37.56% -0.0051 -0.1615)
OKLCHoklch(37.56% 0.162 268.2)
XYZxyz(7.1718, 4.8281, 28.9819)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3395 #95811F
analogous
#1F6E95 #1F3395 #461F95
triadic
#1F3395 #951F33 #33951F
tetradic
#1F3395 #951F6E #95811F #1F9546
square
#1F3395 #951F6E #95811F #1F9546
split-complementary
#1F3395 #95461F #6E951F
monochromatic
#0A1030 #142262 #1F3395 #2A44C8 #536ADB

Accessibility & contrast

On white

10.68
#1F3395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F3395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3395
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3395#FFFFFF#000000##FFFFFF
##1F33951.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#003993
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3395;
/* rgb */ color: rgb(31, 51, 149);
/* oklch */ color: oklch(37.6% 0.162 268.2);
Tailwind
colors: {
  custom: {
    50: '#6f6ab5',
    500: '#1f3395',
    950: '#000000',
  },
}
SCSS
$custom: #1f3395;
$custom-light: #6f6ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3395",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 149
  },
  "hsl": {
    "h": 229.831,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3756,
    "c": 0.16162,
    "h": 268.2
  },
  "luminance": 0.04829
}

Semantic roles & 50–950 ramp

primary
#1F3395
secondary
#BFAC51
accent
#CC3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F3395

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

Preview Lab → · Contrast checker → · Palette generator →

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