#1F2B8A#1F2B8A

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

Color values

HEX#1F2B8A
RGBrgb(31, 43, 138)
HSLhsl(233, 63%, 33%)
HSVhsv(233, 78%, 54%)
CMYKcmyk(77.5%, 68.8%, 0%, 45.9%)
CIE-LABlab(23.18, 30.37, -54.04)
CIE-LCHlch(23.18, 61.99, 299.33°)
OKLaboklab(35% 0.0004 -0.1564)
OKLCHoklch(35% 0.156 270.1)
XYZxyz(6.0148, 3.8534, 24.4666)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B8A #8A7E1F
analogous
#1F608A #1F2B8A #481F8A
triadic
#1F2B8A #8A1F2B #2B8A1F
tetradic
#1F2B8A #8A1F60 #8A7E1F #1F8A48
square
#1F2B8A #8A1F60 #8A7E1F #1F8A48
split-complementary
#1F2B8A #8A481F #608A1F
monochromatic
#090C26 #141B58 #1F2B8A #2A3BBC #4C5CD7

Accessibility & contrast

On white

11.86
#1F2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F2B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B8A
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B8A#FFFFFF#000000##FFFFFF
##1F2B8A1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2b8a;
/* rgb */ color: rgb(31, 43, 138);
/* oklch */ color: oklch(35.0% 0.156 270.1);
Tailwind
colors: {
  custom: {
    50: '#6d64ad',
    500: '#1f2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b8a;
$custom-light: #6d64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b8a",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 233.271,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35002,
    "c": 0.15636,
    "h": 270.1
  },
  "luminance": 0.03854
}

Semantic roles & 50–950 ramp

primary
#1F2B8A
secondary
#BAAD4B
accent
#D441E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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