#1F2E7B#1F2E7B

#1F2E7B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.132 H 269.6°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#1F2E7B
RGBrgb(31, 46, 123)
HSLhsl(230, 60%, 30%)
HSVhsv(230, 75%, 48%)
CMYKcmyk(74.8%, 62.6%, 0%, 51.8%)
CIE-LABlab(22.57, 22.55, -45.61)
CIE-LCHlch(22.57, 50.88, 296.31°)
OKLaboklab(34.12% -0.001 -0.1316)
OKLCHoklch(34.12% 0.132 269.6)
XYZxyz(5.1160, 3.6748, 19.1747)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E7B #7B6C1F
analogous
#1F5C7B #1F2E7B #3E1F7B
triadic
#1F2E7B #7B1F2E #2E7B1F
tetradic
#1F2E7B #7B1F5C #7B6C1F #1F7B3E
square
#1F2E7B #7B1F5C #7B6C1F #1F7B3E
split-complementary
#1F2E7B #7B3E1F #5C7B1F
monochromatic
#060919 #131C4A #1F2E7B #2B40AC #445BD0

Accessibility & contrast

On white

12.10
#1F2E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E7B
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E7B#FFFFFF#000000##FFFFFF
##1F2E7B1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2e7b;
/* rgb */ color: rgb(31, 46, 123);
/* oklch */ color: oklch(34.1% 0.132 269.6);
Tailwind
colors: {
  custom: {
    50: '#6966a2',
    500: '#1f2e7b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e7b;
$custom-light: #6966a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e7b",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 230.217,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34121,
    "c": 0.13165,
    "h": 269.6
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#1F2E7B
secondary
#AE9E48
accent
#C945E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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