#1F338A#1F338A

#1F338A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.146 H 268.1°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#1F338A
RGBrgb(31, 51, 138)
HSLhsl(229, 63%, 33%)
HSVhsv(229, 78%, 54%)
CMYKcmyk(77.5%, 63%, 0%, 45.9%)
CIE-LABlab(25.24, 24.97, -50.67)
CIE-LCHlch(25.24, 56.48, 296.23°)
OKLaboklab(36.51% -0.0048 -0.1464)
OKLCHoklch(36.51% 0.147 268.1)
XYZxyz(6.3348, 4.4932, 24.5733)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F338A #8A761F
analogous
#1F688A #1F338A #401F8A
triadic
#1F338A #8A1F33 #338A1F
tetradic
#1F338A #8A1F68 #8A761F #1F8A40
square
#1F338A #8A1F68 #8A761F #1F8A40
split-complementary
#1F338A #8A401F #688A1F
monochromatic
#090E26 #142158 #1F338A #2A45BC #4C66D7

Accessibility & contrast

On white

11.06
#1F338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F338A
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F338A#FFFFFF#000000##FFFFFF
##1F338A1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f338a;
/* rgb */ color: rgb(31, 51, 138);
/* oklch */ color: oklch(36.5% 0.146 268.1);
Tailwind
colors: {
  custom: {
    50: '#6c6aad',
    500: '#1f338a',
    950: '#000000',
  },
}
SCSS
$custom: #1f338a;
$custom-light: #6c6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f338a",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 228.785,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36514,
    "c": 0.1465,
    "h": 268.1
  },
  "luminance": 0.04494
}

Semantic roles & 50–950 ramp

primary
#1F338A
secondary
#BAA54B
accent
#C841E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F338A

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

Preview Lab → · Contrast checker → · Palette generator →

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