#1F30B4#1F30B4

#1F30B4 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.2% C 0.205 H 268.2°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#1F30B4
RGBrgb(31, 48, 180)
HSLhsl(233, 71%, 41%)
HSVhsv(233, 83%, 71%)
CMYKcmyk(82.8%, 73.3%, 0%, 29.4%)
CIE-LABlab(28.64, 42.50, -70.62)
CIE-LCHlch(28.64, 82.42, 301.04°)
OKLaboklab(40.24% -0.0064 -0.2047)
OKLCHoklch(40.24% 0.205 268.2)
XYZxyz(9.8574, 5.6993, 43.7517)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F30B4 #B4A31F
analogous
#1F7BB4 #1F30B4 #591FB4
triadic
#1F30B4 #B41F30 #30B41F
tetradic
#1F30B4 #B41F7B #B4A31F #1FB459
square
#1F30B4 #B41F7B #B4A31F #1FB459
split-complementary
#1F30B4 #B4591F #7BB41F
monochromatic
#0D144C #162280 #1F30B4 #3447DC #6877E5

Accessibility & contrast

On white

9.81
#1F30B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1F30B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F30B4
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F30B4#FFFFFF#000000##FFFFFF
##1F30B41.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#003CB2
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f30b4;
/* rgb */ color: rgb(31, 48, 180);
/* oklch */ color: oklch(40.2% 0.205 268.2);
Tailwind
colors: {
  custom: {
    50: '#7869cc',
    500: '#1f30b4',
    950: '#000000',
  },
}
SCSS
$custom: #1f30b4;
$custom-light: #7869cc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f30b4",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 180
  },
  "hsl": {
    "h": 233.154,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40235,
    "c": 0.20476,
    "h": 268.2
  },
  "luminance": 0.057
}

Semantic roles & 50–950 ramp

primary
#1F30B4
secondary
#CBBF64
accent
#D93AED
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #1F30B4

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

Preview Lab → · Contrast checker → · Palette generator →

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