#1F2B9F#1F2B9F

#1F2B9F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.184 H 269.4°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#1F2B9F
RGBrgb(31, 43, 159)
HSLhsl(234, 67%, 37%)
HSVhsv(234, 81%, 62%)
CMYKcmyk(80.5%, 73%, 0%, 37.6%)
CIE-LABlab(25.33, 38.08, -63.45)
CIE-LCHlch(25.33, 74.00, 300.97°)
OKLaboklab(37.2% -0.0019 -0.1838)
OKLCHoklch(37.2% 0.184 269.4)
XYZxyz(7.6848, 4.5214, 33.2619)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B9F #9F931F
analogous
#1F6B9F #1F2B9F #531F9F
triadic
#1F2B9F #9F1F2B #2B9F1F
tetradic
#1F2B9F #9F1F6B #9F931F #1F9F53
square
#1F2B9F #9F1F6B #9F931F #1F9F53
split-complementary
#1F2B9F #9F531F #6B9F1F
monochromatic
#0B0F39 #151D6C #1F2B9F #2939D2 #5A66DF

Accessibility & contrast

On white

11.03
#1F2B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F2B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B9F
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B9F#FFFFFF#000000##FFFFFF
##1F2B9F1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f2b9f;
/* rgb */ color: rgb(31, 43, 159);
/* oklch */ color: oklch(37.2% 0.184 269.4);
Tailwind
colors: {
  custom: {
    50: '#7365bd',
    500: '#1f2b9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b9f;
$custom-light: #7365bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b9f",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 234.375,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37197,
    "c": 0.1838,
    "h": 269.4
  },
  "luminance": 0.04522
}

Semantic roles & 50–950 ramp

primary
#1F2B9F
secondary
#C3B957
accent
#DA3EEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #1F2B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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