#1F388E#1F388E

#1F388E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.146 H 266.8°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#1F388E
RGBrgb(31, 56, 142)
HSLhsl(226, 64%, 34%)
HSVhsv(226, 78%, 56%)
CMYKcmyk(78.2%, 60.6%, 0%, 44.3%)
CIE-LABlab(26.94, 23.10, -50.37)
CIE-LCHlch(26.94, 55.41, 294.63°)
OKLaboklab(37.89% -0.0083 -0.1455)
OKLCHoklch(37.89% 0.146 266.8)
XYZxyz(6.8600, 5.0719, 26.2034)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F388E #8E751F
analogous
#1F708E #1F388E #3D1F8E
triadic
#1F388E #8E1F38 #388E1F
tetradic
#1F388E #8E1F70 #8E751F #1F8E3D
square
#1F388E #8E1F70 #8E751F #1F8E3D
split-complementary
#1F388E #8E3D1F #708E1F
monochromatic
#09102A #14245C #1F388E #2A4CC0 #4F6ED9

Accessibility & contrast

On white

10.42
#1F388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F388E
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F388E#FFFFFF#000000##FFFFFF
##1F388E1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f388e;
/* rgb */ color: rgb(31, 56, 142);
/* oklch */ color: oklch(37.9% 0.146 266.8);
Tailwind
colors: {
  custom: {
    50: '#6d6eb0',
    500: '#1f388e',
    950: '#000000',
  },
}
SCSS
$custom: #1f388e;
$custom-light: #6d6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f388e",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 226.486,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37886,
    "c": 0.14572,
    "h": 266.8
  },
  "luminance": 0.05073
}

Semantic roles & 50–950 ramp

primary
#1F388E
secondary
#BBA34D
accent
#C241E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F388E

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

Preview Lab → · Contrast checker → · Palette generator →

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