#1F3390#1F3390

#1F3390 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.155 H 268.2°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#1F3390
RGBrgb(31, 51, 144)
HSLhsl(229, 65%, 34%)
HSVhsv(229, 78%, 56%)
CMYKcmyk(78.5%, 64.6%, 0%, 43.5%)
CIE-LABlab(25.78, 27.30, -53.50)
CIE-LCHlch(25.78, 60.06, 297.03°)
OKLaboklab(37.08% -0.0049 -0.1547)
OKLCHoklch(37.08% 0.155 268.2)
XYZxyz(6.7812, 4.6718, 26.9245)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3390 #907C1F
analogous
#1F6B90 #1F3390 #441F90
triadic
#1F3390 #901F33 #33901F
tetradic
#1F3390 #901F6B #907C1F #1F9044
square
#1F3390 #901F6B #907C1F #1F9044
split-complementary
#1F3390 #90441F #6B901F
monochromatic
#090F2B #14215E #1F3390 #2A45C2 #5068D9

Accessibility & contrast

On white

10.85
#1F3390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1F3390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3390
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3390#FFFFFF#000000##FFFFFF
##1F33901.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004293
Deuteranopia (green-blind)
#00388E
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f3390;
/* rgb */ color: rgb(31, 51, 144);
/* oklch */ color: oklch(37.1% 0.155 268.2);
Tailwind
colors: {
  custom: {
    50: '#6e6ab1',
    500: '#1f3390',
    950: '#000000',
  },
}
SCSS
$custom: #1f3390;
$custom-light: #6e6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3390",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 144
  },
  "hsl": {
    "h": 229.381,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3708,
    "c": 0.15481,
    "h": 268.2
  },
  "luminance": 0.04673
}

Semantic roles & 50–950 ramp

primary
#1F3390
secondary
#BCA94E
accent
#CA40E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F3390

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

Preview Lab → · Contrast checker → · Palette generator →

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