#242F9D#242F9D

#242F9D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.176 H 270.5°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#242F9D
RGBrgb(36, 47, 157)
HSLhsl(235, 63%, 38%)
HSVhsv(235, 77%, 62%)
CMYKcmyk(77.1%, 70.1%, 0%, 38.4%)
CIE-LABlab(26.28, 35.30, -60.65)
CIE-LCHlch(26.28, 70.18, 300.20°)
OKLaboklab(37.89% 0.0015 -0.1755)
OKLCHoklch(37.89% 0.176 270.5)
XYZxyz(7.8278, 4.8416, 32.4137)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F9D #9D9224
analogous
#246C9D #242F9D #55249D
triadic
#242F9D #9D242F #2F9D24
tetradic
#242F9D #9D246C #9D9224 #249D55
square
#242F9D #9D246C #9D9224 #249D55
split-complementary
#242F9D #9D5524 #6C9D24
monochromatic
#0D1139 #19206B #242F9D #2F3ECF #616CDB

Accessibility & contrast

On white

10.67
#242F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#242F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F9D
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F9D#FFFFFF#000000##FFFFFF
##242F9D1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #242f9d;
/* rgb */ color: rgb(36, 47, 157);
/* oklch */ color: oklch(37.9% 0.176 270.5);
Tailwind
colors: {
  custom: {
    50: '#7368bb',
    500: '#242f9d',
    950: '#000000',
  },
}
SCSS
$custom: #242f9d;
$custom-light: #7368bb;
$custom-dark: #000000;
JSON
{
  "hex": "#242f9d",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 234.545,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3789,
    "c": 0.17555,
    "h": 270.5
  },
  "luminance": 0.04842
}

Semantic roles & 50–950 ramp

primary
#242F9D
secondary
#C0B75D
accent
#D742E6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #242F9D

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

Preview Lab → · Contrast checker → · Palette generator →

#242F9D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva