#1F2B95#1F2B95

#1F2B95 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.171 H 269.8°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#1F2B95
RGBrgb(31, 43, 149)
HSLhsl(234, 66%, 35%)
HSVhsv(234, 79%, 58%)
CMYKcmyk(79.2%, 71.1%, 0%, 41.6%)
CIE-LABlab(24.28, 34.46, -59.04)
CIE-LCHlch(24.28, 68.36, 300.27°)
OKLaboklab(36.14% -0.0007 -0.171)
OKLCHoklch(36.14% 0.171 269.8)
XYZxyz(6.8519, 4.1882, 28.8752)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B95 #95891F
analogous
#1F6695 #1F2B95 #4E1F95
triadic
#1F2B95 #951F2B #2B951F
tetradic
#1F2B95 #951F66 #95891F #1F954E
square
#1F2B95 #951F66 #95891F #1F954E
split-complementary
#1F2B95 #954E1F #66951F
monochromatic
#0A0E30 #141C62 #1F2B95 #2A3AC8 #5361DB

Accessibility & contrast

On white

11.43
#1F2B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F2B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B95
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B95#FFFFFF#000000##FFFFFF
##1F2B951.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f2b95;
/* rgb */ color: rgb(31, 43, 149);
/* oklch */ color: oklch(36.1% 0.171 269.8);
Tailwind
colors: {
  custom: {
    50: '#7065b5',
    500: '#1f2b95',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b95;
$custom-light: #7065b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b95",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 233.898,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36136,
    "c": 0.17096,
    "h": 269.8
  },
  "luminance": 0.04189
}

Semantic roles & 50–950 ramp

primary
#1F2B95
secondary
#BFB351
accent
#D73FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1F2B95

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

Preview Lab → · Contrast checker → · Palette generator →

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