#1F338C#1F338C

#1F338C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.149 H 268.2°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#1F338C
RGBrgb(31, 51, 140)
HSLhsl(229, 64%, 34%)
HSVhsv(229, 78%, 55%)
CMYKcmyk(77.9%, 63.6%, 0%, 45.1%)
CIE-LABlab(25.42, 25.75, -51.62)
CIE-LCHlch(25.42, 57.68, 296.51°)
OKLaboklab(36.7% -0.0048 -0.1492)
OKLCHoklch(36.7% 0.149 268.2)
XYZxyz(6.4809, 4.5517, 25.3429)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F338C #8C781F
analogous
#1F698C #1F338C #411F8C
triadic
#1F338C #8C1F33 #338C1F
tetradic
#1F338C #8C1F69 #8C781F #1F8C41
square
#1F338C #8C1F69 #8C781F #1F8C41
split-complementary
#1F338C #8C411F #698C1F
monochromatic
#090E28 #14215A #1F338C #2A45BE #4E67D8

Accessibility & contrast

On white

10.99
#1F338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F338C
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F338C#FFFFFF#000000##FFFFFF
##1F338C1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f338c;
/* rgb */ color: rgb(31, 51, 140);
/* oklch */ color: oklch(36.7% 0.149 268.2);
Tailwind
colors: {
  custom: {
    50: '#6d6aae',
    500: '#1f338c',
    950: '#000000',
  },
}
SCSS
$custom: #1f338c;
$custom-light: #6d6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f338c",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 228.991,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36701,
    "c": 0.14929,
    "h": 268.2
  },
  "luminance": 0.04552
}

Semantic roles & 50–950 ramp

primary
#1F338C
secondary
#BBA64C
accent
#C841E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F338C

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

Preview Lab → · Contrast checker → · Palette generator →

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