#1F338B#1F338B

#1F338B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.148 H 268.1°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#1F338B
RGBrgb(31, 51, 139)
HSLhsl(229, 64%, 33%)
HSVhsv(229, 78%, 55%)
CMYKcmyk(77.7%, 63.3%, 0%, 45.5%)
CIE-LABlab(25.33, 25.36, -51.14)
CIE-LCHlch(25.33, 57.08, 296.37°)
OKLaboklab(36.61% -0.0048 -0.1478)
OKLCHoklch(36.61% 0.148 268.1)
XYZxyz(6.4075, 4.5223, 24.9563)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F338B #8B771F
analogous
#1F698B #1F338B #411F8B
triadic
#1F338B #8B1F33 #338B1F
tetradic
#1F338B #8B1F69 #8B771F #1F8B41
square
#1F338B #8B1F69 #8B771F #1F8B41
split-complementary
#1F338B #8B411F #698B1F
monochromatic
#090E27 #142159 #1F338B #2A45BD #4D67D7

Accessibility & contrast

On white

11.03
#1F338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F338B
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F338B#FFFFFF#000000##FFFFFF
##1F338B1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f338b;
/* rgb */ color: rgb(31, 51, 139);
/* oklch */ color: oklch(36.6% 0.148 268.1);
Tailwind
colors: {
  custom: {
    50: '#6d6aae',
    500: '#1f338b',
    950: '#000000',
  },
}
SCSS
$custom: #1f338b;
$custom-light: #6d6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f338b",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 228.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36608,
    "c": 0.14789,
    "h": 268.1
  },
  "luminance": 0.04523
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F338B

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

Preview Lab → · Contrast checker → · Palette generator →

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