#1F338D#1F338D

#1F338D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.151 H 268.2°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#1F338D
RGBrgb(31, 51, 141)
HSLhsl(229, 64%, 34%)
HSVhsv(229, 78%, 55%)
CMYKcmyk(78%, 63.8%, 0%, 44.7%)
CIE-LABlab(25.51, 26.14, -52.09)
CIE-LCHlch(25.51, 58.28, 296.64°)
OKLaboklab(36.8% -0.0048 -0.1506)
OKLCHoklch(36.8% 0.151 268.2)
XYZxyz(6.5550, 4.5813, 25.7330)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F338D #8D791F
analogous
#1F6A8D #1F338D #421F8D
triadic
#1F338D #8D1F33 #338D1F
tetradic
#1F338D #8D1F6A #8D791F #1F8D42
square
#1F338D #8D1F6A #8D791F #1F8D42
split-complementary
#1F338D #8D421F #6A8D1F
monochromatic
#090F29 #14215B #1F338D #2A45BF #4E67D8

Accessibility & contrast

On white

10.96
#1F338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1F338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F338D
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F338D#FFFFFF#000000##FFFFFF
##1F338D1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f338d;
/* rgb */ color: rgb(31, 51, 141);
/* oklch */ color: oklch(36.8% 0.151 268.2);
Tailwind
colors: {
  custom: {
    50: '#6d6aaf',
    500: '#1f338d',
    950: '#000000',
  },
}
SCSS
$custom: #1f338d;
$custom-light: #6d6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f338d",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 229.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36795,
    "c": 0.15067,
    "h": 268.2
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#1F338D
secondary
#BBA74D
accent
#C941E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F338D

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

Preview Lab → · Contrast checker → · Palette generator →

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