#1B3295#1B3295

#1B3295 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.164 H 267.2°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#1B3295
RGBrgb(27, 50, 149)
HSLhsl(229, 69%, 35%)
HSVhsv(229, 82%, 58%)
CMYKcmyk(81.9%, 66.4%, 0%, 41.6%)
CIE-LABlab(25.81, 29.51, -56.53)
CIE-LCHlch(25.81, 63.77, 297.56°)
OKLaboklab(37.2% -0.008 -0.1637)
OKLCHoklch(37.2% 0.164 267.2)
XYZxyz(7.0155, 4.6833, 28.9622)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3295 #957E1B
analogous
#1B6F95 #1B3295 #411B95
triadic
#1B3295 #951B32 #32951B
tetradic
#1B3295 #951B6F #957E1B #1B9541
square
#1B3295 #951B6F #957E1B #1B9541
split-complementary
#1B3295 #95411B #6F951B
monochromatic
#080F2D #122161 #1B3295 #2443C9 #4C68DF

Accessibility & contrast

On white

10.84
#1B3295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1B3295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3295
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3295#FFFFFF#000000##FFFFFF
##1B32951.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#003793
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1b3295;
/* rgb */ color: rgb(27, 50, 149);
/* oklch */ color: oklch(37.2% 0.164 267.2);
Tailwind
colors: {
  custom: {
    50: '#6e69b5',
    500: '#1b3295',
    950: '#000000',
  },
}
SCSS
$custom: #1b3295;
$custom-light: #6e69b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3295",
  "rgb": {
    "r": 27,
    "g": 50,
    "b": 149
  },
  "hsl": {
    "h": 228.689,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37199,
    "c": 0.16389,
    "h": 267.2
  },
  "luminance": 0.04684
}

Semantic roles & 50–950 ramp

primary
#1B3295
secondary
#C1AB4B
accent
#CB3CEC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1B3295

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

Preview Lab → · Contrast checker → · Palette generator →

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