#1F30A7#1F30A7

#1F30A7 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.189 H 268.5°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#1F30A7
RGBrgb(31, 48, 167)
HSLhsl(233, 69%, 39%)
HSVhsv(233, 81%, 65%)
CMYKcmyk(81.4%, 71.3%, 0%, 34.5%)
CIE-LABlab(27.28, 37.87, -65.07)
CIE-LCHlch(27.28, 75.29, 300.20°)
OKLaboklab(38.85% -0.0049 -0.1885)
OKLCHoklch(38.85% 0.189 268.5)
XYZxyz(8.5947, 5.1942, 37.1013)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F30A7 #A7961F
analogous
#1F74A7 #1F30A7 #521FA7
triadic
#1F30A7 #A71F30 #30A71F
tetradic
#1F30A7 #A71F74 #A7961F #1FA752
square
#1F30A7 #A71F74 #A7961F #1FA752
split-complementary
#1F30A7 #A7521F #74A71F
monochromatic
#0C1240 #152173 #1F30A7 #2B41D8 #5F6FE1

Accessibility & contrast

On white

10.30
#1F30A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1F30A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F30A7
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F30A7#FFFFFF#000000##FFFFFF
##1F30A71.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f30a7;
/* rgb */ color: rgb(31, 48, 167);
/* oklch */ color: oklch(38.9% 0.189 268.5);
Tailwind
colors: {
  custom: {
    50: '#7469c2',
    500: '#1f30a7',
    950: '#000000',
  },
}
SCSS
$custom: #1f30a7;
$custom-light: #7469c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f30a7",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 167
  },
  "hsl": {
    "h": 232.5,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38853,
    "c": 0.18859,
    "h": 268.5
  },
  "luminance": 0.05195
}

Semantic roles & 50–950 ramp

primary
#1F30A7
secondary
#C6B95C
accent
#D63CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1F30A7

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

Preview Lab → · Contrast checker → · Palette generator →

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