#1F2E5B#1F2E5B

#1F2E5B is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.4% C 0.083 H 267.6°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#1F2E5B
RGBrgb(31, 46, 91)
HSLhsl(225, 49%, 24%)
HSVhsv(225, 66%, 36%)
CMYKcmyk(65.9%, 49.5%, 0%, 64.3%)
CIE-LABlab(20.05, 9.86, -28.96)
CIE-LCHlch(20.05, 30.60, 288.80°)
OKLaboklab(31.42% -0.0034 -0.0827)
OKLCHoklch(31.42% 0.083 267.6)
XYZxyz(3.4298, 3.0003, 10.2939)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E5B #5B4C1F
analogous
#1F4C5B #1F2E5B #2E1F5B
triadic
#1F2E5B #5B1F2E #2E5B1F
tetradic
#1F2E5B #5B1F4C #5B4C1F #1F5B2E
square
#1F2E5B #5B1F4C #5B4C1F #1F5B2E
split-complementary
#1F2E5B #5B2E1F #4C5B1F
monochromatic
#080C17 #0F172D #1F2E5B #2F4589 #3E5CB6

Accessibility & contrast

On white

13.12
#1F2E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1F2E5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E5B
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E5B#FFFFFF#000000##FFFFFF
##1F2E5B1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18335D
Deuteranopia (green-blind)
#0F2E5A
Tritanopia (blue-blind)
#003840
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f2e5b;
/* rgb */ color: rgb(31, 46, 91);
/* oklch */ color: oklch(31.4% 0.083 267.6);
Tailwind
colors: {
  custom: {
    50: '#61668a',
    500: '#1f2e5b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e5b;
$custom-light: #61668a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e5b",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 91
  },
  "hsl": {
    "h": 225,
    "s": 49.18,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31425,
    "c": 0.08277,
    "h": 267.6
  },
  "luminance": 0.03001
}

Semantic roles & 50–950 ramp

primary
#1F2E5B
secondary
#907D46
accent
#B64FD9
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05050B
muted
#7A7A7C

Preview Lab

Preview with #1F2E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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