#1F338E#1F338E

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

Color values

HEX#1F338E
RGBrgb(31, 51, 142)
HSLhsl(229, 64%, 34%)
HSVhsv(229, 78%, 56%)
CMYKcmyk(78.2%, 64.1%, 0%, 44.3%)
CIE-LABlab(25.60, 26.52, -52.56)
CIE-LCHlch(25.60, 58.87, 296.78°)
OKLaboklab(36.89% -0.0048 -0.152)
OKLCHoklch(36.89% 0.152 268.2)
XYZxyz(6.6297, 4.6112, 26.1266)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F338E #8E7A1F
analogous
#1F6B8E #1F338E #431F8E
triadic
#1F338E #8E1F33 #338E1F
tetradic
#1F338E #8E1F6B #8E7A1F #1F8E43
square
#1F338E #8E1F6B #8E7A1F #1F8E43
split-complementary
#1F338E #8E431F #6B8E1F
monochromatic
#090F2A #14215C #1F338E #2A45C0 #4F68D9

Accessibility & contrast

On white

10.92
#1F338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F338E
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F338E#FFFFFF#000000##FFFFFF
##1F338E1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f338e;
/* rgb */ color: rgb(31, 51, 142);
/* oklch */ color: oklch(36.9% 0.152 268.2);
Tailwind
colors: {
  custom: {
    50: '#6d6ab0',
    500: '#1f338e',
    950: '#000000',
  },
}
SCSS
$custom: #1f338e;
$custom-light: #6d6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f338e",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 229.189,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3689,
    "c": 0.15206,
    "h": 268.2
  },
  "luminance": 0.04612
}

Semantic roles & 50–950 ramp

primary
#1F338E
secondary
#BBA84D
accent
#C941E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F338E

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

Preview Lab → · Contrast checker → · Palette generator →

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