#1F2195#1F2195

#1F2195 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.181 H 271.1°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#1F2195
RGBrgb(31, 33, 149)
HSLhsl(239, 66%, 35%)
HSVhsv(239, 79%, 58%)
CMYKcmyk(79.2%, 77.9%, 0%, 41.6%)
CIE-LABlab(22.12, 40.50, -62.62)
CIE-LCHlch(22.12, 74.57, 302.90°)
OKLaboklab(34.59% 0.0036 -0.1813)
OKLCHoklch(34.59% 0.181 271.1)
XYZxyz(6.5319, 3.5482, 28.7686)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2195 #95931F
analogous
#1F5C95 #1F2195 #581F95
triadic
#1F2195 #951F21 #21951F
tetradic
#1F2195 #951F5C #95931F #1F9558
square
#1F2195 #951F5C #95931F #1F9558
split-complementary
#1F2195 #95581F #5C951F
monochromatic
#0A0B30 #141662 #1F2195 #2A2CC8 #5355DB

Accessibility & contrast

On white

12.28
#1F2195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2195
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2195#FFFFFF#000000##FFFFFF
##1F21951.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#002F93
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2195;
/* rgb */ color: rgb(31, 33, 149);
/* oklch */ color: oklch(34.6% 0.181 271.1);
Tailwind
colors: {
  custom: {
    50: '#715eb5',
    500: '#1f2195',
    950: '#000000',
  },
}
SCSS
$custom: #1f2195;
$custom-light: #715eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2195",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 238.983,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34589,
    "c": 0.18133,
    "h": 271.1
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#1F2195
secondary
#BFBD51
accent
#E63FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2195

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

Preview Lab → · Contrast checker → · Palette generator →

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