#1F30A5#1F30A5

#1F30A5 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.186 H 268.5°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#1F30A5
RGBrgb(31, 48, 165)
HSLhsl(232, 68%, 38%)
HSVhsv(232, 81%, 65%)
CMYKcmyk(81.2%, 70.9%, 0%, 35.3%)
CIE-LABlab(27.08, 37.14, -64.20)
CIE-LCHlch(27.08, 74.17, 300.05°)
OKLaboklab(38.64% -0.0047 -0.186)
OKLCHoklch(38.64% 0.186 268.5)
XYZxyz(8.4112, 5.1208, 36.1351)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F30A5 #A5941F
analogous
#1F73A5 #1F30A5 #511FA5
triadic
#1F30A5 #A51F30 #30A51F
tetradic
#1F30A5 #A51F73 #A5941F #1FA551
square
#1F30A5 #A51F73 #A5941F #1FA551
split-complementary
#1F30A5 #A5511F #73A51F
monochromatic
#0C123E #152171 #1F30A5 #2A40D7 #5E6EE1

Accessibility & contrast

On white

10.37
#1F30A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1F30A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F30A5
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F30A5#FFFFFF#000000##FFFFFF
##1F30A51.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f30a5;
/* rgb */ color: rgb(31, 48, 165);
/* oklch */ color: oklch(38.6% 0.186 268.5);
Tailwind
colors: {
  custom: {
    50: '#7469c1',
    500: '#1f30a5',
    950: '#000000',
  },
}
SCSS
$custom: #1f30a5;
$custom-light: #7469c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f30a5",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 232.388,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38644,
    "c": 0.18605,
    "h": 268.5
  },
  "luminance": 0.05122
}

Semantic roles & 50–950 ramp

primary
#1F30A5
secondary
#C5B85B
accent
#D53DEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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