#1F33A8#1F33A8

#1F33A8 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.5% C 0.187 H 268.1°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#1F33A8
RGBrgb(31, 51, 168)
HSLhsl(231, 69%, 39%)
HSVhsv(231, 82%, 66%)
CMYKcmyk(81.5%, 69.6%, 0%, 34.1%)
CIE-LABlab(28.07, 36.34, -64.37)
CIE-LCHlch(28.07, 73.92, 299.45°)
OKLaboklab(39.46% -0.0063 -0.1865)
OKLCHoklch(39.46% 0.187 268.1)
XYZxyz(8.8143, 5.4851, 37.6324)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F33A8 #A8941F
analogous
#1F78A8 #1F33A8 #501FA8
triadic
#1F33A8 #A81F33 #33A81F
tetradic
#1F33A8 #A81F78 #A8941F #1FA850
square
#1F33A8 #A81F78 #A8941F #1FA850
split-complementary
#1F33A8 #A8501F #78A81F
monochromatic
#0C1441 #152374 #1F33A8 #2C45D8 #6073E2

Accessibility & contrast

On white

10.01
#1F33A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#1F33A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F33A8
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F33A8#FFFFFF#000000##FFFFFF
##1F33A81.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f33a8;
/* rgb */ color: rgb(31, 51, 168);
/* oklch */ color: oklch(39.5% 0.187 268.1);
Tailwind
colors: {
  custom: {
    50: '#746bc3',
    500: '#1f33a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f33a8;
$custom-light: #746bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f33a8",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 168
  },
  "hsl": {
    "h": 231.241,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39457,
    "c": 0.18658,
    "h": 268.1
  },
  "luminance": 0.05486
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F33A8

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

Preview Lab → · Contrast checker → · Palette generator →

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