#1F2B8E#1F2B8E

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

Color values

HEX#1F2B8E
RGBrgb(31, 43, 142)
HSLhsl(234, 64%, 34%)
HSVhsv(234, 78%, 56%)
CMYKcmyk(78.2%, 69.7%, 0%, 44.3%)
CIE-LABlab(23.58, 31.87, -55.88)
CIE-LCHlch(23.58, 64.32, 299.70°)
OKLaboklab(35.41% 0 -0.1617)
OKLCHoklch(35.41% 0.162 270)
XYZxyz(6.3098, 3.9714, 26.0199)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B8E #8E821F
analogous
#1F638E #1F2B8E #4B1F8E
triadic
#1F2B8E #8E1F2B #2B8E1F
tetradic
#1F2B8E #8E1F63 #8E821F #1F8E4B
square
#1F2B8E #8E1F63 #8E821F #1F8E4B
split-complementary
#1F2B8E #8E4B1F #638E1F
monochromatic
#090D2A #141C5C #1F2B8E #2A3AC0 #4F5ED9

Accessibility & contrast

On white

11.70
#1F2B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B8E
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B8E#FFFFFF#000000##FFFFFF
##1F2B8E1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2b8e;
/* rgb */ color: rgb(31, 43, 142);
/* oklch */ color: oklch(35.4% 0.162 270.0);
Tailwind
colors: {
  custom: {
    50: '#6e64b0',
    500: '#1f2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b8e;
$custom-light: #6e64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b8e",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 233.514,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3541,
    "c": 0.16173,
    "h": 270
  },
  "luminance": 0.03972
}

Semantic roles & 50–950 ramp

primary
#1F2B8E
secondary
#BBB04D
accent
#D541E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #1F2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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