#1F2A94#1F2A94

#1F2A94 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.171 H 270.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#1F2A94
RGBrgb(31, 42, 148)
HSLhsl(234, 65%, 35%)
HSVhsv(234, 79%, 58%)
CMYKcmyk(79.1%, 71.6%, 0%, 42%)
CIE-LABlab(23.95, 34.73, -58.97)
CIE-LCHlch(23.95, 68.44, 300.49°)
OKLaboklab(35.86% -0.0001 -0.1708)
OKLCHoklch(35.86% 0.171 270)
XYZxyz(6.7365, 4.0846, 28.4446)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A94 #94891F
analogous
#1F6494 #1F2A94 #4E1F94
triadic
#1F2A94 #941F2A #2A941F
tetradic
#1F2A94 #941F64 #94891F #1F944E
square
#1F2A94 #941F64 #94891F #1F944E
split-complementary
#1F2A94 #944E1F #64941F
monochromatic
#0A0D2F #141C61 #1F2A94 #2A38C7 #535FDB

Accessibility & contrast

On white

11.56
#1F2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F2A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A94
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A94#FFFFFF#000000##FFFFFF
##1F2A941.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2a94;
/* rgb */ color: rgb(31, 42, 148);
/* oklch */ color: oklch(35.9% 0.171 270.0);
Tailwind
colors: {
  custom: {
    50: '#7064b5',
    500: '#1f2a94',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a94;
$custom-light: #7064b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a94",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 234.359,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35863,
    "c": 0.17077,
    "h": 270
  },
  "luminance": 0.04085
}

Semantic roles & 50–950 ramp

primary
#1F2A94
secondary
#BEB451
accent
#D83FE8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1F2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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