#1F38BC#1F38BC

#1F38BC is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.3% C 0.206 H 267.2°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#1F38BC
RGBrgb(31, 56, 188)
HSLhsl(230, 72%, 43%)
HSVhsv(230, 84%, 74%)
CMYKcmyk(83.5%, 70.2%, 0%, 26.3%)
CIE-LABlab(31.23, 40.48, -71.09)
CIE-LCHlch(31.23, 81.81, 299.66°)
OKLaboklab(42.34% -0.01 -0.206)
OKLCHoklch(42.34% 0.206 267.2)
XYZxyz(11.0532, 6.7491, 48.2874)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F38BC #BCA31F
analogous
#1F86BC #1F38BC #551FBC
triadic
#1F38BC #BC1F38 #38BC1F
tetradic
#1F38BC #BC1F86 #BCA31F #1FBC55
square
#1F38BC #BC1F86 #BCA31F #1FBC55
split-complementary
#1F38BC #BC551F #86BC1F
monochromatic
#0E1953 #162887 #1F38BC #3A54DE #6E82E7

Accessibility & contrast

On white

8.94
#1F38BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#1F38BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F38BC
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F38BC#FFFFFF#000000##FFFFFF
##1F38BC1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#0042BA
Tritanopia (blue-blind)
#005D76
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f38bc;
/* rgb */ color: rgb(31, 56, 188);
/* oklch */ color: oklch(42.3% 0.206 267.2);
Tailwind
colors: {
  custom: {
    50: '#796fd1',
    500: '#1f38bc',
    950: '#000000',
  },
}
SCSS
$custom: #1f38bc;
$custom-light: #796fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f38bc",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 230.446,
    "s": 71.689,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42344,
    "c": 0.20629,
    "h": 267.2
  },
  "luminance": 0.0675
}

Semantic roles & 50–950 ramp

primary
#1F38BC
secondary
#CDBD69
accent
#D239EE
background
#F8F6FD
surface
#EFECFA
border
#CAC7D3
text
#0B0714
muted
#7C7A83

Preview Lab

Preview with #1F38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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