#1F2B8F#1F2B8F

#1F2B8F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.163 H 270.0°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#1F2B8F
RGBrgb(31, 43, 143)
HSLhsl(234, 64%, 34%)
HSVhsv(234, 78%, 56%)
CMYKcmyk(78.3%, 69.9%, 0%, 43.9%)
CIE-LABlab(23.68, 32.24, -56.33)
CIE-LCHlch(23.68, 64.91, 299.78°)
OKLaboklab(35.51% -0.0001 -0.1631)
OKLCHoklch(35.51% 0.163 270)
XYZxyz(6.3852, 4.0015, 26.4171)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B8F #8F831F
analogous
#1F638F #1F2B8F #4B1F8F
triadic
#1F2B8F #8F1F2B #2B8F1F
tetradic
#1F2B8F #8F1F63 #8F831F #1F8F4B
square
#1F2B8F #8F1F63 #8F831F #1F8F4B
split-complementary
#1F2B8F #8F4B1F #638F1F
monochromatic
#090D2A #141C5D #1F2B8F #2A3AC1 #4F5ED9

Accessibility & contrast

On white

11.66
#1F2B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F2B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B8F
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B8F#FFFFFF#000000##FFFFFF
##1F2B8F1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2b8f;
/* rgb */ color: rgb(31, 43, 143);
/* oklch */ color: oklch(35.5% 0.163 270.0);
Tailwind
colors: {
  custom: {
    50: '#6e64b1',
    500: '#1f2b8f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b8f;
$custom-light: #6e64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b8f",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 143
  },
  "hsl": {
    "h": 233.571,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35513,
    "c": 0.16306,
    "h": 270
  },
  "luminance": 0.04002
}

Semantic roles & 50–950 ramp

primary
#1F2B8F
secondary
#BCB04E
accent
#D540E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #1F2B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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