#1F2B8B#1F2B8B

#1F2B8B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.158 H 270.1°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#1F2B8B
RGBrgb(31, 43, 139)
HSLhsl(233, 64%, 33%)
HSVhsv(233, 78%, 55%)
CMYKcmyk(77.7%, 69.1%, 0%, 45.5%)
CIE-LABlab(23.28, 30.74, -54.50)
CIE-LCHlch(23.28, 62.57, 299.43°)
OKLaboklab(35.1% 0.0003 -0.1577)
OKLCHoklch(35.1% 0.158 270.1)
XYZxyz(6.0876, 3.8825, 24.8497)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B8B #8B7F1F
analogous
#1F618B #1F2B8B #491F8B
triadic
#1F2B8B #8B1F2B #2B8B1F
tetradic
#1F2B8B #8B1F61 #8B7F1F #1F8B49
square
#1F2B8B #8B1F61 #8B7F1F #1F8B49
split-complementary
#1F2B8B #8B491F #618B1F
monochromatic
#090C27 #141C59 #1F2B8B #2A3ABD #4D5CD7

Accessibility & contrast

On white

11.82
#1F2B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F2B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B8B
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B8B#FFFFFF#000000##FFFFFF
##1F2B8B1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2b8b;
/* rgb */ color: rgb(31, 43, 139);
/* oklch */ color: oklch(35.1% 0.158 270.1);
Tailwind
colors: {
  custom: {
    50: '#6d64ae',
    500: '#1f2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b8b;
$custom-light: #6d64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b8b",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 233.333,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35103,
    "c": 0.15771,
    "h": 270.1
  },
  "luminance": 0.03883
}

Semantic roles & 50–950 ramp

primary
#1F2B8B
secondary
#BAAE4C
accent
#D441E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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