#1F308D#1F308D

#1F308D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.154 H 268.9°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#1F308D
RGBrgb(31, 48, 141)
HSLhsl(231, 64%, 34%)
HSVhsv(231, 78%, 55%)
CMYKcmyk(78%, 66%, 0%, 44.7%)
CIE-LABlab(24.73, 28.17, -53.37)
CIE-LCHlch(24.73, 60.35, 297.83°)
OKLaboklab(36.22% -0.0029 -0.1544)
OKLCHoklch(36.22% 0.154 268.9)
XYZxyz(6.4281, 4.3276, 25.6907)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F308D #8D7C1F
analogous
#1F678D #1F308D #451F8D
triadic
#1F308D #8D1F30 #308D1F
tetradic
#1F308D #8D1F67 #8D7C1F #1F8D45
square
#1F308D #8D1F67 #8D7C1F #1F8D45
split-complementary
#1F308D #8D451F #678D1F
monochromatic
#090E29 #141F5B #1F308D #2A41BF #4E64D8

Accessibility & contrast

On white

11.26
#1F308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F308D
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F308D#FFFFFF#000000##FFFFFF
##1F308D1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f308d;
/* rgb */ color: rgb(31, 48, 141);
/* oklch */ color: oklch(36.2% 0.154 268.9);
Tailwind
colors: {
  custom: {
    50: '#6d68af',
    500: '#1f308d',
    950: '#000000',
  },
}
SCSS
$custom: #1f308d;
$custom-light: #6d68af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f308d",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 230.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3622,
    "c": 0.1544,
    "h": 268.9
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

primary
#1F308D
secondary
#BBAA4D
accent
#CD41E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F308D

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

Preview Lab → · Contrast checker → · Palette generator →

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