#1F33A7#1F33A7

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

Color values

HEX#1F33A7
RGBrgb(31, 51, 167)
HSLhsl(231, 69%, 39%)
HSVhsv(231, 81%, 65%)
CMYKcmyk(81.4%, 69.5%, 0%, 34.5%)
CIE-LABlab(27.97, 35.97, -63.93)
CIE-LCHlch(27.97, 73.35, 299.37°)
OKLaboklab(39.36% -0.0062 -0.1852)
OKLCHoklch(39.36% 0.185 268.1)
XYZxyz(8.7215, 5.4480, 37.1436)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F33A7 #A7931F
analogous
#1F77A7 #1F33A7 #4F1FA7
triadic
#1F33A7 #A71F33 #33A71F
tetradic
#1F33A7 #A71F77 #A7931F #1FA74F
square
#1F33A7 #A71F77 #A7931F #1FA74F
split-complementary
#1F33A7 #A74F1F #77A71F
monochromatic
#0C1340 #152373 #1F33A7 #2B45D8 #5F72E1

Accessibility & contrast

On white

10.05
#1F33A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1F33A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F33A7
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F33A7#FFFFFF#000000##FFFFFF
##1F33A71.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f33a7;
/* rgb */ color: rgb(31, 51, 167);
/* oklch */ color: oklch(39.4% 0.185 268.1);
Tailwind
colors: {
  custom: {
    50: '#746bc2',
    500: '#1f33a7',
    950: '#000000',
  },
}
SCSS
$custom: #1f33a7;
$custom-light: #746bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f33a7",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 167
  },
  "hsl": {
    "h": 231.176,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39355,
    "c": 0.18531,
    "h": 268.1
  },
  "luminance": 0.05449
}

Semantic roles & 50–950 ramp

primary
#1F33A7
secondary
#C6B65C
accent
#D23CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1F33A7

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

Preview Lab → · Contrast checker → · Palette generator →

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