#1F338F#1F338F

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

Color values

HEX#1F338F
RGBrgb(31, 51, 143)
HSLhsl(229, 64%, 34%)
HSVhsv(229, 78%, 56%)
CMYKcmyk(78.3%, 64.3%, 0%, 43.9%)
CIE-LABlab(25.69, 26.91, -53.03)
CIE-LCHlch(25.69, 59.47, 296.90°)
OKLaboklab(36.98% -0.0049 -0.1534)
OKLCHoklch(36.98% 0.153 268.2)
XYZxyz(6.7051, 4.6414, 26.5238)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F338F #8F7B1F
analogous
#1F6B8F #1F338F #431F8F
triadic
#1F338F #8F1F33 #338F1F
tetradic
#1F338F #8F1F6B #8F7B1F #1F8F43
square
#1F338F #8F1F6B #8F7B1F #1F8F43
split-complementary
#1F338F #8F431F #6B8F1F
monochromatic
#090F2A #14215D #1F338F #2A45C1 #4F68D9

Accessibility & contrast

On white

10.89
#1F338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1F338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F338F
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F338F#FFFFFF#000000##FFFFFF
##1F338F1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f338f;
/* rgb */ color: rgb(31, 51, 143);
/* oklch */ color: oklch(37.0% 0.153 268.2);
Tailwind
colors: {
  custom: {
    50: '#6e6ab1',
    500: '#1f338f',
    950: '#000000',
  },
}
SCSS
$custom: #1f338f;
$custom-light: #6e6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f338f",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 229.286,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36984,
    "c": 0.15344,
    "h": 268.2
  },
  "luminance": 0.04642
}

Semantic roles & 50–950 ramp

primary
#1F338F
secondary
#BCA84E
accent
#CA40E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F338F

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

Preview Lab → · Contrast checker → · Palette generator →

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