#1F2E70#1F2E70

#1F2E70 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.1% C 0.115 H 269.4°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#1F2E70
RGBrgb(31, 46, 112)
HSLhsl(229, 57%, 28%)
HSVhsv(229, 72%, 44%)
CMYKcmyk(72.3%, 58.9%, 0%, 56.1%)
CIE-LABlab(21.63, 18.21, -40.10)
CIE-LCHlch(21.63, 44.04, 294.42°)
OKLaboklab(33.13% -0.0012 -0.1155)
OKLCHoklch(33.13% 0.115 269.4)
XYZxyz(4.4657, 3.4147, 15.7499)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E70 #70611F
analogous
#1F5670 #1F2E70 #381F70
triadic
#1F2E70 #701F2E #2E701F
tetradic
#1F2E70 #701F56 #70611F #1F7038
square
#1F2E70 #701F56 #70611F #1F7038
split-complementary
#1F2E70 #70381F #56701F
monochromatic
#070A18 #121A40 #1F2E70 #2C42A0 #3F59CA

Accessibility & contrast

On white

12.48
#1F2E70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F2E70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E70
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E70#FFFFFF#000000##FFFFFF
##1F2E701.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003872
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2e70;
/* rgb */ color: rgb(31, 46, 112);
/* oklch */ color: oklch(33.1% 0.115 269.4);
Tailwind
colors: {
  custom: {
    50: '#66669a',
    500: '#1f2e70',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e70;
$custom-light: #66669a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e70",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 112
  },
  "hsl": {
    "h": 228.889,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33134,
    "c": 0.11547,
    "h": 269.4
  },
  "luminance": 0.03415
}

Semantic roles & 50–950 ramp

primary
#1F2E70
secondary
#A49347
accent
#C448E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #1F2E70

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

Preview Lab → · Contrast checker → · Palette generator →

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