#1F309F#1F309F

#1F309F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.178 H 268.7°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#1F309F
RGBrgb(31, 48, 159)
HSLhsl(232, 67%, 37%)
HSVhsv(232, 81%, 62%)
CMYKcmyk(80.5%, 69.8%, 0%, 37.6%)
CIE-LABlab(26.47, 34.94, -61.56)
CIE-LCHlch(26.47, 70.79, 299.58°)
OKLaboklab(38.02% -0.0042 -0.1783)
OKLCHoklch(38.02% 0.178 268.7)
XYZxyz(7.8779, 4.9075, 33.3262)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F309F #9F8E1F
analogous
#1F709F #1F309F #4E1F9F
triadic
#1F309F #9F1F30 #309F1F
tetradic
#1F309F #9F1F70 #9F8E1F #1F9F4E
square
#1F309F #9F1F70 #9F8E1F #1F9F4E
split-complementary
#1F309F #9F4E1F #709F1F
monochromatic
#0B1139 #15216C #1F309F #293FD2 #5A6BDF

Accessibility & contrast

On white

10.60
#1F309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1F309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F309F
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F309F#FFFFFF#000000##FFFFFF
##1F309F1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f309f;
/* rgb */ color: rgb(31, 48, 159);
/* oklch */ color: oklch(38.0% 0.178 268.7);
Tailwind
colors: {
  custom: {
    50: '#7268bc',
    500: '#1f309f',
    950: '#000000',
  },
}
SCSS
$custom: #1f309f;
$custom-light: #7268bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f309f",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 232.031,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38022,
    "c": 0.17835,
    "h": 268.7
  },
  "luminance": 0.04908
}

Semantic roles & 50–950 ramp

primary
#1F309F
secondary
#C3B457
accent
#D33EEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F309F

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

Preview Lab → · Contrast checker → · Palette generator →

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