#1F368F#1F368F

#1F368F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.150 H 267.4°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#1F368F
RGBrgb(31, 54, 143)
HSLhsl(228, 64%, 34%)
HSVhsv(228, 78%, 56%)
CMYKcmyk(78.3%, 62.2%, 0%, 43.9%)
CIE-LABlab(26.48, 24.86, -51.73)
CIE-LCHlch(26.48, 57.40, 295.67°)
OKLaboklab(37.57% -0.0069 -0.1495)
OKLCHoklch(37.57% 0.15 267.4)
XYZxyz(6.8404, 4.9120, 26.5689)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F368F #8F781F
analogous
#1F6E8F #1F368F #401F8F
triadic
#1F368F #8F1F36 #368F1F
tetradic
#1F368F #8F1F6E #8F781F #1F8F40
square
#1F368F #8F1F6E #8F781F #1F8F40
split-complementary
#1F368F #8F401F #6E8F1F
monochromatic
#09102A #14235D #1F368F #2A49C1 #4F6CD9

Accessibility & contrast

On white

10.59
#1F368F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F368F
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F368F#FFFFFF#000000##FFFFFF
##1F368F1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f368f;
/* rgb */ color: rgb(31, 54, 143);
/* oklch */ color: oklch(37.6% 0.150 267.4);
Tailwind
colors: {
  custom: {
    50: '#6d6cb1',
    500: '#1f368f',
    950: '#000000',
  },
}
SCSS
$custom: #1f368f;
$custom-light: #6d6cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f368f",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 143
  },
  "hsl": {
    "h": 227.679,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37573,
    "c": 0.14967,
    "h": 267.4
  },
  "luminance": 0.04913
}

Semantic roles & 50–950 ramp

primary
#1F368F
secondary
#BCA54E
accent
#C540E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F368F

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

Preview Lab → · Contrast checker → · Palette generator →

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