#1F308A#1F308A

#1F308A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.150 H 268.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#1F308A
RGBrgb(31, 48, 138)
HSLhsl(230, 63%, 33%)
HSVhsv(230, 78%, 54%)
CMYKcmyk(77.5%, 65.2%, 0%, 45.9%)
CIE-LABlab(24.45, 27.02, -51.96)
CIE-LCHlch(24.45, 58.56, 297.47°)
OKLaboklab(35.93% -0.0028 -0.1502)
OKLCHoklch(35.93% 0.15 268.9)
XYZxyz(6.2079, 4.2395, 24.5310)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F308A #8A791F
analogous
#1F658A #1F308A #431F8A
triadic
#1F308A #8A1F30 #308A1F
tetradic
#1F308A #8A1F65 #8A791F #1F8A43
square
#1F308A #8A1F65 #8A791F #1F8A43
split-complementary
#1F308A #8A431F #658A1F
monochromatic
#090D26 #141F58 #1F308A #2A41BC #4C62D7

Accessibility & contrast

On white

11.36
#1F308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F308A
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F308A#FFFFFF#000000##FFFFFF
##1F308A1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f308a;
/* rgb */ color: rgb(31, 48, 138);
/* oklch */ color: oklch(35.9% 0.150 268.9);
Tailwind
colors: {
  custom: {
    50: '#6d68ad',
    500: '#1f308a',
    950: '#000000',
  },
}
SCSS
$custom: #1f308a;
$custom-light: #6d68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f308a",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 230.467,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3593,
    "c": 0.15027,
    "h": 268.9
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#1F308A
secondary
#BAA84B
accent
#CC41E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F308A

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

Preview Lab → · Contrast checker → · Palette generator →

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