#1F33B4#1F33B4

#1F33B4 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 40.7% C 0.202 H 267.9°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#1F33B4
RGBrgb(31, 51, 180)
HSLhsl(232, 71%, 41%)
HSVhsv(232, 83%, 71%)
CMYKcmyk(82.8%, 71.7%, 0%, 29.4%)
CIE-LABlab(29.29, 40.69, -69.54)
CIE-LCHlch(29.29, 80.57, 300.33°)
OKLaboklab(40.7% -0.0075 -0.2015)
OKLCHoklch(40.7% 0.202 267.9)
XYZxyz(9.9843, 5.9530, 43.7940)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F33B4 #B4A01F
analogous
#1F7EB4 #1F33B4 #561FB4
triadic
#1F33B4 #B41F33 #33B41F
tetradic
#1F33B4 #B41F7E #B4A01F #1FB456
square
#1F33B4 #B41F7E #B4A01F #1FB456
split-complementary
#1F33B4 #B4561F #7EB41F
monochromatic
#0D154C #162480 #1F33B4 #344BDC #6879E5

Accessibility & contrast

On white

9.59
#1F33B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1F33B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F33B4
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F33B4#FFFFFF#000000##FFFFFF
##1F33B41.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB8
Deuteranopia (green-blind)
#003EB2
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f33b4;
/* rgb */ color: rgb(31, 51, 180);
/* oklch */ color: oklch(40.7% 0.202 267.9);
Tailwind
colors: {
  custom: {
    50: '#776bcc',
    500: '#1f33b4',
    950: '#000000',
  },
}
SCSS
$custom: #1f33b4;
$custom-light: #776bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f33b4",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 180
  },
  "hsl": {
    "h": 231.946,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40704,
    "c": 0.20168,
    "h": 267.9
  },
  "luminance": 0.05954
}

Semantic roles & 50–950 ramp

primary
#1F33B4
secondary
#CBBD64
accent
#D53AED
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #1F33B4

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

Preview Lab → · Contrast checker → · Palette generator →

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