#1F2D94#1F2D94

#1F2D94 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.167 H 269.4°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#1F2D94
RGBrgb(31, 45, 148)
HSLhsl(233, 65%, 35%)
HSVhsv(233, 79%, 58%)
CMYKcmyk(79.1%, 69.6%, 0%, 42%)
CIE-LABlab(24.66, 32.80, -57.81)
CIE-LCHlch(24.66, 66.47, 299.57°)
OKLaboklab(36.38% -0.0016 -0.1674)
OKLCHoklch(36.38% 0.167 269.4)
XYZxyz(6.8469, 4.3054, 28.4814)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D94 #94861F
analogous
#1F6794 #1F2D94 #4C1F94
triadic
#1F2D94 #941F2D #2D941F
tetradic
#1F2D94 #941F67 #94861F #1F944C
square
#1F2D94 #941F67 #94861F #1F944C
split-complementary
#1F2D94 #944C1F #67941F
monochromatic
#0A0E2F #141E61 #1F2D94 #2A3CC7 #5363DB

Accessibility & contrast

On white

11.28
#1F2D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F2D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D94
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D94#FFFFFF#000000##FFFFFF
##1F2D941.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#003592
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f2d94;
/* rgb */ color: rgb(31, 45, 148);
/* oklch */ color: oklch(36.4% 0.167 269.4);
Tailwind
colors: {
  custom: {
    50: '#6f66b4',
    500: '#1f2d94',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d94;
$custom-light: #6f66b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d94",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 232.821,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36375,
    "c": 0.16738,
    "h": 269.4
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#1F2D94
secondary
#BEB151
accent
#D43FE8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F2D94

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

Preview Lab → · Contrast checker → · Palette generator →

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