#1F2E8B#1F2E8B

#1F2E8B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.154 H 269.4°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#1F2E8B
RGBrgb(31, 46, 139)
HSLhsl(232, 64%, 33%)
HSVhsv(232, 78%, 55%)
CMYKcmyk(77.7%, 66.9%, 0%, 45.5%)
CIE-LABlab(24.03, 28.75, -53.27)
CIE-LCHlch(24.03, 60.53, 298.35°)
OKLaboklab(35.65% -0.0015 -0.1541)
OKLCHoklch(35.65% 0.154 269.4)
XYZxyz(6.2007, 4.1087, 24.8874)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E8B #8B7C1F
analogous
#1F648B #1F2E8B #461F8B
triadic
#1F2E8B #8B1F2E #2E8B1F
tetradic
#1F2E8B #8B1F64 #8B7C1F #1F8B46
square
#1F2E8B #8B1F64 #8B7C1F #1F8B46
split-complementary
#1F2E8B #8B461F #648B1F
monochromatic
#090D27 #141D59 #1F2E8B #2A3FBD #4D60D7

Accessibility & contrast

On white

11.53
#1F2E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2E8B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E8B#FFFFFF#000000##FFFFFF
##1F2E8B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2e8b;
/* rgb */ color: rgb(31, 46, 139);
/* oklch */ color: oklch(35.6% 0.154 269.4);
Tailwind
colors: {
  custom: {
    50: '#6d66ae',
    500: '#1f2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e8b;
$custom-light: #6d66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e8b",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 231.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3565,
    "c": 0.15411,
    "h": 269.4
  },
  "luminance": 0.04109
}

Semantic roles & 50–950 ramp

primary
#1F2E8B
secondary
#BAAB4C
accent
#D041E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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