#1F309E#1F309E

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

Color values

HEX#1F309E
RGBrgb(31, 48, 158)
HSLhsl(232, 67%, 37%)
HSVhsv(232, 80%, 62%)
CMYKcmyk(80.4%, 69.6%, 0%, 38%)
CIE-LABlab(26.37, 34.57, -61.12)
CIE-LCHlch(26.37, 70.22, 299.50°)
OKLaboklab(37.92% -0.0041 -0.177)
OKLCHoklch(37.92% 0.177 268.7)
XYZxyz(7.7915, 4.8729, 32.8711)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F309E #9E8D1F
analogous
#1F6F9E #1F309E #4E1F9E
triadic
#1F309E #9E1F30 #309E1F
tetradic
#1F309E #9E1F6F #9E8D1F #1F9E4E
square
#1F309E #9E1F6F #9E8D1F #1F9E4E
split-complementary
#1F309E #9E4E1F #6F9E1F
monochromatic
#0B1138 #15206B #1F309E #2940D1 #596BDE

Accessibility & contrast

On white

10.63
#1F309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F309E
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F309E#FFFFFF#000000##FFFFFF
##1F309E1.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f309e;
/* rgb */ color: rgb(31, 48, 158);
/* oklch */ color: oklch(37.9% 0.177 268.7);
Tailwind
colors: {
  custom: {
    50: '#7268bc',
    500: '#1f309e',
    950: '#000000',
  },
}
SCSS
$custom: #1f309e;
$custom-light: #7268bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f309e",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 231.969,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3792,
    "c": 0.17706,
    "h": 268.7
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

primary
#1F309E
secondary
#C2B456
accent
#D33EEA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F309E

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

Preview Lab → · Contrast checker → · Palette generator →

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