#1F3375#1F3375

#1F3375 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.116 H 267.3°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#1F3375
RGBrgb(31, 51, 117)
HSLhsl(226, 58%, 29%)
HSVhsv(226, 74%, 46%)
CMYKcmyk(73.5%, 56.4%, 0%, 54.1%)
CIE-LABlab(23.48, 16.65, -40.31)
CIE-LCHlch(23.48, 43.61, 292.45°)
OKLaboklab(34.65% -0.0054 -0.116)
OKLCHoklch(34.65% 0.116 267.3)
XYZxyz(4.9587, 3.9428, 17.3259)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3375 #75611F
analogous
#1F5E75 #1F3375 #361F75
triadic
#1F3375 #751F33 #33751F
tetradic
#1F3375 #751F5E #75611F #1F7536
square
#1F3375 #751F5E #75611F #1F7536
split-complementary
#1F3375 #75361F #5E751F
monochromatic
#060B18 #121E45 #1F3375 #2C48A5 #4262CD

Accessibility & contrast

On white

11.74
#1F3375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F3375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3375
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3375#FFFFFF#000000##FFFFFF
##1F33751.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023C77
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#00434E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f3375;
/* rgb */ color: rgb(31, 51, 117);
/* oklch */ color: oklch(34.6% 0.116 267.3);
Tailwind
colors: {
  custom: {
    50: '#676a9d',
    500: '#1f3375',
    950: '#000000',
  },
}
SCSS
$custom: #1f3375;
$custom-light: #676a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3375",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 117
  },
  "hsl": {
    "h": 226.047,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3465,
    "c": 0.11612,
    "h": 267.3
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#1F3375
secondary
#A99247
accent
#BD46E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F3375

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

Preview Lab → · Contrast checker → · Palette generator →

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