#1F308C#1F308C

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

Color values

HEX#1F308C
RGBrgb(31, 48, 140)
HSLhsl(231, 64%, 34%)
HSVhsv(231, 78%, 55%)
CMYKcmyk(77.9%, 65.7%, 0%, 45.1%)
CIE-LABlab(24.63, 27.78, -52.90)
CIE-LCHlch(24.63, 59.75, 297.71°)
OKLaboklab(36.12% -0.0028 -0.153)
OKLCHoklch(36.12% 0.153 268.9)
XYZxyz(6.3540, 4.2980, 25.3006)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F308C #8C7B1F
analogous
#1F668C #1F308C #441F8C
triadic
#1F308C #8C1F30 #308C1F
tetradic
#1F308C #8C1F66 #8C7B1F #1F8C44
square
#1F308C #8C1F66 #8C7B1F #1F8C44
split-complementary
#1F308C #8C441F #668C1F
monochromatic
#090E28 #141F5A #1F308C #2A41BE #4E63D8

Accessibility & contrast

On white

11.29
#1F308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F308C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F308C#FFFFFF#000000##FFFFFF
##1F308C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f308c;
/* rgb */ color: rgb(31, 48, 140);
/* oklch */ color: oklch(36.1% 0.153 268.9);
Tailwind
colors: {
  custom: {
    50: '#6d68ae',
    500: '#1f308c',
    950: '#000000',
  },
}
SCSS
$custom: #1f308c;
$custom-light: #6d68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f308c",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 230.642,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36123,
    "c": 0.15303,
    "h": 268.9
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F308C

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

Preview Lab → · Contrast checker → · Palette generator →

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