#1F308B#1F308B

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

Color values

HEX#1F308B
RGBrgb(31, 48, 139)
HSLhsl(231, 64%, 33%)
HSVhsv(231, 78%, 55%)
CMYKcmyk(77.7%, 65.5%, 0%, 45.5%)
CIE-LABlab(24.54, 27.40, -52.43)
CIE-LCHlch(24.54, 59.16, 297.59°)
OKLaboklab(36.03% -0.0028 -0.1516)
OKLCHoklch(36.03% 0.152 268.9)
XYZxyz(6.2806, 4.2686, 24.9140)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F308B #8B7A1F
analogous
#1F668B #1F308B #441F8B
triadic
#1F308B #8B1F30 #308B1F
tetradic
#1F308B #8B1F66 #8B7A1F #1F8B44
square
#1F308B #8B1F66 #8B7A1F #1F8B44
split-complementary
#1F308B #8B441F #668B1F
monochromatic
#090D27 #141F59 #1F308B #2A41BD #4D63D7

Accessibility & contrast

On white

11.33
#1F308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F308B
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F308B#FFFFFF#000000##FFFFFF
##1F308B1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f308b;
/* rgb */ color: rgb(31, 48, 139);
/* oklch */ color: oklch(36.0% 0.152 268.9);
Tailwind
colors: {
  custom: {
    50: '#6d68ae',
    500: '#1f308b',
    950: '#000000',
  },
}
SCSS
$custom: #1f308b;
$custom-light: #6d68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f308b",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 230.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36026,
    "c": 0.15165,
    "h": 268.9
  },
  "luminance": 0.04269
}

Semantic roles & 50–950 ramp

primary
#1F308B
secondary
#BAA94C
accent
#CD41E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F308B

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

Preview Lab → · Contrast checker → · Palette generator →

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