#1F33A6#1F33A6

#1F33A6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.184 H 268.1°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#1F33A6
RGBrgb(31, 51, 166)
HSLhsl(231, 69%, 39%)
HSVhsv(231, 81%, 65%)
CMYKcmyk(81.3%, 69.3%, 0%, 34.9%)
CIE-LABlab(27.88, 35.61, -63.49)
CIE-LCHlch(27.88, 72.79, 299.29°)
OKLaboklab(39.25% -0.0062 -0.1839)
OKLCHoklch(39.25% 0.184 268.1)
XYZxyz(8.6294, 5.4111, 36.6586)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F33A6 #A6921F
analogous
#1F76A6 #1F33A6 #4E1FA6
triadic
#1F33A6 #A61F33 #33A61F
tetradic
#1F33A6 #A61F76 #A6921F #1FA64E
square
#1F33A6 #A61F76 #A6921F #1FA64E
split-complementary
#1F33A6 #A64E1F #76A61F
monochromatic
#0C133F #152372 #1F33A6 #2B44D7 #5E72E1

Accessibility & contrast

On white

10.08
#1F33A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#1F33A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F33A6
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F33A6#FFFFFF#000000##FFFFFF
##1F33A61.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f33a6;
/* rgb */ color: rgb(31, 51, 166);
/* oklch */ color: oklch(39.3% 0.184 268.1);
Tailwind
colors: {
  custom: {
    50: '#746bc2',
    500: '#1f33a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f33a6;
$custom-light: #746bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f33a6",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 166
  },
  "hsl": {
    "h": 231.111,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39253,
    "c": 0.18401,
    "h": 268.1
  },
  "luminance": 0.05412
}

Semantic roles & 50–950 ramp

primary
#1F33A6
secondary
#C5B65B
accent
#D13CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F33A6

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

Preview Lab → · Contrast checker → · Palette generator →

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