#1F309C#1F309C

#1F309C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.174 H 268.7°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#1F309C
RGBrgb(31, 48, 156)
HSLhsl(232, 67%, 37%)
HSVhsv(232, 80%, 61%)
CMYKcmyk(80.1%, 69.2%, 0%, 38.8%)
CIE-LABlab(26.17, 33.83, -60.22)
CIE-LCHlch(26.17, 69.08, 299.33°)
OKLaboklab(37.71% -0.0039 -0.1744)
OKLCHoklch(37.71% 0.174 268.7)
XYZxyz(7.6207, 4.8046, 31.9718)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F309C #9C8B1F
analogous
#1F6F9C #1F309C #4D1F9C
triadic
#1F309C #9C1F30 #309C1F
tetradic
#1F309C #9C1F6F #9C8B1F #1F9C4D
square
#1F309C #9C1F6F #9C8B1F #1F9C4D
split-complementary
#1F309C #9C4D1F #6F9C1F
monochromatic
#0B1136 #152069 #1F309C #2940CF #586ADE

Accessibility & contrast

On white

10.71
#1F309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F309C
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F309C#FFFFFF#000000##FFFFFF
##1F309C1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f309c;
/* rgb */ color: rgb(31, 48, 156);
/* oklch */ color: oklch(37.7% 0.174 268.7);
Tailwind
colors: {
  custom: {
    50: '#7168ba',
    500: '#1f309c',
    950: '#000000',
  },
}
SCSS
$custom: #1f309c;
$custom-light: #7168ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f309c",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 231.84,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37715,
    "c": 0.17445,
    "h": 268.7
  },
  "luminance": 0.04806
}

Semantic roles & 50–950 ramp

primary
#1F309C
secondary
#C1B355
accent
#D23EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F309C

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

Preview Lab → · Contrast checker → · Palette generator →

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